About Me

My photo
Raipur, Chhattisgarh, India
Hi , I am Amit Thakur. I have worked as a QA Engineer for two years and as a Java Developer for one year in NIHILENT TECHNOLOGIES PVT. LTD., Pune.Currently I am working as DEAN (Research & Development) in Bhilai Institute of Technology, Raipur.

Thursday, November 26, 2009

/*C Prog:- Find The Square and Cube of Number*/

/*C Prog:- Find The Square and Cube of Number*/
/*Written By:- Amit Thakur */

#include
#include
void main()
{
                 int no,square,cube;
                clrscr();
                 printf("enter the number ");
                 scanf("%d",&no);
                 square=no*no;
                 cube=no*no*no;
                 printf("the square is=%d",square);
                 printf("the cube is=%d",cube);
                 getch();
}

No comments: