C Program to Convert Miles into Meter

Convert Miles into Meter in CHere's the complete c program to convert miles into meters.

First, we're taking two variables named mile and meter in float data types.

Then, we'll get the value from the user in miles.

After getting the value we'll apply the formula to convert miles into meters.

How to Convert Miles into Meter in C?


#include<stdio.h>
void main()
{
//declaration of variable
float mile, meter;
//getting the value in mile
printf("Enter the value in mile");
scanf("%f",&mile);
// formula to convert mile into meter
meter = (mile * 1609.34) ;
printf(" %f mile is equal to %f meter", mile, meter);
}
view raw mile-to-meter.c hosted with ❤ by GitHub
Related:

Comments

Popular posts from this blog

Pseudocode to Check, Number is Odd or Even

How to Create Marksheet in C

C Program to Calculate Acceleration