#include<stdio.h>
int main()
{
float num,sqr;
printf("Enter the number:");
scanf("%f",&num);
sqr=num*num; /* square formula */
printf("square=%f",sqr);
return 0;
}
int main()
{
float num,sqr;
printf("Enter the number:");
scanf("%f",&num);
sqr=num*num; /* square formula */
printf("square=%f",sqr);
return 0;
}
No comments:
Post a Comment