Meri kalam se
Wednesday, 16 February 2022
Find out area of a rectangle by taking input from user in C
#include
<stdio.h>
int
main
(){
int
l
,
b
,
area
;
printf
(
"Enter length:"
);
scanf
(
"
%d
"
,&
l
);
printf
(
"Enter breadth:"
);
scanf
(
"
%d
"
,&
b
);
printf
(
"The area of a rectangle is:
%d
"
,
l
*
b
);
return
0
;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment