Saturday, October 31

To find sqaure of numbers using C program!

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,squarea,squareb;
clrscr();
printf("Enter the 2 numbers to find its square\n");
scanf("%d%d",&a,&b);
squarea=a*a;
squareb=b*b;
printf("squarea = %d, squareb = %d", squarea, squareb);
getch();
}

No comments:

Post a Comment