#include<stdio.h> int main() { int n; printf("Enter a number"); scanf("%d",&n); printf("\nSquare of the number %d is %d",n,n*n); printf("\nCube of the number %d is %d",n,n*n*n); return 0; }
outputs:
Enter a number 2
Square of the number 2 is 4
Cube of the number 2 is 8
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
outputs:
Enter a number 2
Square of the number 2 is 4
Cube of the number 2 is 8