Computer Science, asked by jasmine96, 1 year ago

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 Anonymous
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