ProAnswers.org

Write a C program to convert Hour into Minutes ?

#include

#include 

void main() 

{ 

float h,m; 

clrscr(); 

printf(“enter the hour:

”);

scanf(“%f,&h); 

m=n*60; 

printf(“minutes=%f”,m); 

getch(); 

} 

Output: 

enter the hour: 

8 

minutes=480.000000