// prog.cpp : Defines the entry point for the console application. #include "stdafx.h" #include using namespace std; int main() { int num; cout << "Enter an integer:"; cin >> num; cout << "The square of " << num << " is: " << num*num << endl; return 0; }