Computer Science, asked by abhijit45, 11 months ago

Can you please provide me with a sample programme.

Attachments:

Answers

Answered by NottyaaYan
0

Answer:

#include<iostream.h>

#include<conio.h>

void main( )

{

clrscr( );

int sec, hr, min, time;

cout<<"Enter the time in seconds:";

cin>>sec;

hr=sec/3600;

min=sec/60;

sec=1*sec;

cout<<" \n time in hours="<<hr;

cout<<"\n time in minutes ="<<min;

cout<<"\n time in seconds ="<<sec;

getch( );

}

Similar questions