Computer Science, asked by Agrima100, 1 year ago

Write a program that assign time in hours and print in minutes​

Answers

Answered by gurukulamdivya
1

Answer:

#include <stdio.h>

int main()

{

int h, m;

printf("Input time in hours: ");

scanf("%d", &h);

m = h*60;  

printf("So time in minutes -%d\n",m);

return 0;

}


Agrima100: what will be the output .??
gurukulamdivya: if u enter the time as
gurukulamdivya: 3 hour
gurukulamdivya: than answer will be 3*60=180min
Agrima100: thanks .
gurukulamdivya: rate the answer
Similar questions