Meri kalam se
Tuesday, 22 February 2022
convert from km to m and cm
#include
<stdio.h>
int
main
()
{
int
A
;
printf
(
"Enter the distance in kilometers:
\n
"
);
scanf
(
"
%d
"
,&
A
);
printf
(
"The distance in meters is:
%d
mtr
\n
"
,
A
*
1000
);
printf
(
"The distance in centimeters is:
%d
cms"
,
A
*
100000
);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment