Calculating Total and Percent By Using C

#include<stdio.h> #include<conio.h> void main () { float total,math,bio,phy,eng,comp,avg; clrscr(); printf(“Enter the value of your subject,math,bio,phy,eng,comp\n”); scanf(“%f%f%f%f%f”,&math,&bio,&phy,&eng,&comp); total=math+bio+phy+eng+comp; printf(“Your total number=%0.2f\n”,total);…

Continue Reading →

Changing Kilometer into Meter,Centimeter,Inch,Foot,Yard&Mile By using C

#include<stdio.h> #include<conio.h> void main() { float kilometer,meter,centimeter,inch,foot,yard,mile; clrscr(); printf(“Enter your journey in kilometer=”); scanf(“%f”,&kilometer); meter=kilometer*1000; centimeter=100*meter; inch=centimeter/2.54; foot=inch/12; yard=foot/3; mile=yard/1760;…

Continue Reading →