Program :-
#include<stdio.h>
main()
{
float b,l,area;
printf("enter the breadth and the length : \n");
scanf("%f %f ",&b,&l);
printf("area = %f ", b * l);
}
Output :-
enter the breadth and length :
3
4
area = 12
#include<stdio.h>
main()
{
float b,l,area;
printf("enter the breadth and the length : \n");
scanf("%f %f ",&b,&l);
printf("area = %f ", b * l);
}
Output :-
enter the breadth and length :
3
4
area = 12
No comments:
Post a Comment