Write a program in c input two numbers and display the square of their sum
Answers
Answered by
5
#include <stdio.h>
int main ()
{
int x, y;
printf ("Input first number: ");
scanf ("%d", &x);
printf ("Input second number: ");
scanf ("%d", &y);
printf ("Their square is %d", (x+y)**2);
return 0;
}
int main ()
{
int x, y;
printf ("Input first number: ");
scanf ("%d", &x);
printf ("Input second number: ");
scanf ("%d", &y);
printf ("Their square is %d", (x+y)**2);
return 0;
}
Similar questions
India Languages,
8 months ago
Psychology,
8 months ago
Computer Science,
1 year ago
Math,
1 year ago
Hindi,
1 year ago