C program to calculate A+B square

Code:
#include<stdio.h>
#include<math.h>
void main()
{
int a,b,answer;
printf("\nEnter a A \t:");
scanf("%d",&a);
printf("\nEnter a B \t:");
scanf("%d",&b);
answer=pow(a,2)+pow(b,2)+2*a*b;
printf("\n%d is the answer",answer);
}
view raw aplusbsqr.c hosted with ❤ by GitHub

Comments

Popular posts from this blog

C++ programming toll plaza simulation program