Here is the code in getting the squared and cube of a numbers.
Code:
#include..........
#include..........
#include..........
int main()
{
int num1,num2, num[20];
scanf("%d",&num2);
num1=0;
while (num1
printf("\tEnter Number: ");
scanf("%d",&num[num1]);
num1++;
}
printf("Number\t\tSquare\t\tcube");
while(num1
printf("\n%d\t\t%d\t\t%d",
num[num1],num[num1]*num[num1],num[num1]*num[num1]*num[num1]);
num1++;
}
getch();
}
Output: