Write a Program to Find The Square And Cube Using C Program. 


#include<stdio.h>
#include<conio.h>
void main()
{
   clrscr();
   int number,square,cube;

   printf("\n Enter The Any Numbers :");
   scanf("%d",&number);

   square= number*number;
   cube= square*number;
 
   printf("\n Square of %d is = %d",number,square);
   printf("\n\n Cube of %d is = %d", number,cube); 
   getch();
}

Comments

Popular posts from this blog