Input distance in km from user convert it into Meter
1 2 3 4 5 6 7 8 9 10 11 12 | #include<stdio.h> int main() { float km,m; printf("Enter value\n"); scanf("%f",&km); m=km*1000; printf("Km=%f\n",km); printf("Meters=%f",m); } |
A blog about programming languages and this Blog specially Create for learning languages like C language,C++ Language, Data Structure and Algorithm.
1 2 3 4 5 6 7 8 9 10 11 12 | #include<stdio.h> int main() { float km,m; printf("Enter value\n"); scanf("%f",&km); m=km*1000; printf("Km=%f\n",km); printf("Meters=%f",m); } |
Post a Comment