// con1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; int main() { int x=10, y, z, left, right; cout << "Enter a 2-dig #:"; cin >> x; right = x % 10; left = x / 10; cout << "first dig = " << left << endl; cout << "second dig = " << right << endl; return 0; }