Write a C program for Area of Rectangle
Program:-
#include <stdio.h>
#include <conio.h>
void main()
{
int a,b, A;
clrscr();
printf("Enter the value of a and b");
scanf("%d%d",&a,&b);
A=a*b;
printf("%d",A);
getch();
}
Output:-
input:-
Enter the value of a, b
a=10
b=2
Enter the value of a, b
a=10
b=2
output:-
20
20
0 comments:
Post a Comment