How two check a given number square in c program?
How two check a given number square in c program?
This program allows the user to enter an integer value and then finds the square of that number using Arithmetic operator.
This program allows the user to enter an integer value and then finds the square of that number using Arithmetic operator.
#include<stdio.h>
int main(){
//Take two int typr variable
int a,result;
printf("Enter any number\n");
scanf("%d",&a);
result=a*a;
printf("sqaure is : %d\n",result);
}
Thanks to visit my blog, please comment & give your feedback !
Comments
Post a Comment