Instructions:
Sample Results:
Input
Multiple lines containing an integer.
2
6
Output
Multiple lines containing an integer.
4
36
#include <stdio.h>
int main()
{
int a;
do
{
scanf("%d", &a);
printf("%d \n", a * a);
} while(a != 0);
return 0;
}
Comments
Leave a comment