Meter to feet

Program:

#include<stdio.h>
int main()
{
float f,m;
printf("\nEnter meter : ");
scanf("%f",&m);
f=m/0.3048;
printf("Feet: %.4f",f);
return 0;

}

Output:


No comments:

Post a Comment

x^y using recursion

Program: #include<stdio.h> int power(int a,int b); int main() { int x,y,ans; printf("Enter x and y:\n "); scanf(...