C Program to find the square of given number


C Program to find the square of given number

#include<stdio.h>
int main()
{
    int n,sq;
printf("Enter any number");
scanf("%d",&n);
sq=n*n;
printf("Square of %d is %d",n,sq);
    return 0;
}


C Program to find the Cube of given number

#include<stdio.h>
int main()
{
    int n,cu;
printf("Enter any number");
scanf("%d",&n);
cu=n*n*n;
printf("Cube of %d is %d",n,cu);
    return 0;
}