// A4.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include using namespace std; int main(int argc, char* argv[]) { int In1, square, cube, fourth; // Declares variables cout << "Enter an integer: "; // Asks for integers cin >> In1 ; square = pow(In1, 2.0); // Calculations for square, cube, and fourth of integer cube = pow(In1, 3.0); fourth = pow(In1, 4.0); cout << "The square root of the integer is: " << square << endl; // Displays results cout << "The cube of the integer is: " << cube << endl; cout << "The fourth of the integer is: " << fourth << endl; return 0; }