Formula (a+b)^2 :C Program
#include<stdio.h>#include<conio.h>
void main()
{
int a,b,Formula;
printf("Enter The Value Of a");
scanf("%d",&a);
printf("Enter The Value Of b");
scanf("%d",&b);
formula=a*a+2*a*b+b*b;
printf("Formula value =%d",formula);
getch();
}
void main()
{
int a,b,Formula;
printf("Enter The Value Of a");
scanf("%d",&a);
printf("Enter The Value Of b");
scanf("%d",&b);
formula=a*a+2*a*b+b*b;
printf("Formula value =%d",formula);
getch();
}
0 comments:
Post a Comment