Convert meter to feet in C Language

Convert meter to feet in C Language

Write a program in C Language to Convert meter to feet in C Language.

/*    Calculate Simple Interest    */
#include<stdio.h>
int main()
{
	float p;
	float r,t;
	float si;

	printf("Enter your principal amount : ");
	scanf("%f",&p);
	printf("\nEnter your rate of interest : ");
	scanf("%f",&r);
	printf("\nEnter time (in year) : ");
	scanf("%f",&t);
	si = (p*r*t)/100;
	printf("\nSimple Interest is : %.2f",si);
	return 0;
}

Output:

Enter your principal amount : 1000

Enter your rate of interest : 5

Enter time (in year) : 2

Simple Interest is : 100.00

Leave a Reply

Close Menu