write a program to input a integer from the user and print the square of it, only if it is more than 20
Answers
Answered by
1
#include <stdio.h>
int main()
{
int a;
printf("enter a number");
scanf("%d",&a);
if(a>20)
printf("The square of the number is %d",a*a);
}
Similar questions