Donate Us
Write a C program to find the square of a number Test Case 1 Input (stdin) 2 Expected Output 4 Test Case 2 Input (stdin) 5 Expected Output 25
#include <stdio.h>
int main()
{
int a,squ;
scanf ("%d%d",&a,&squ);
squ=a*a;
printf ("%d",squ);
return 0;
}