search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
74 views
asked Geek 15.3k points 16 41 63

1 Answer

0 votes

#include<stdio.h>

#include<conio.h>

#define H 60

void main()

{

typedef int hours;

hours hrs;

clrscr();

printf(“Enter hours:”);

scanf(“%d”, &hrs);

printf(“\nMinutes: %d”,hrs*H);

printf(“\n Seconds: %d”,hrs*H*H);

getch();

}

Output:

Enter hours: 2

Minutes: 120

Seconds: 7200 

answered Guru 39.1k points 10 21 33

Related questions

0 votes
1 answer 128 views
0 votes
1 answer 73 views
0 votes
1 answer 23 views
0 votes
1 answer 1.7K views
...