c program to convert meter to inches

 Program to convert measure meter to inches


  #include <stdio.h="">
int main () {
int i=8;
//1m= 39.3701inches
printf("%f",(39.3701*i));
return 0;
}

above c program just convert meters into inches.we know that 1m= 39.3701inches hence the i value gets multiped by 39.3701 to get value in meters

No comments: