main()
{
int sec=00,min=00,hr=00;
printf("Enter time in seconds");
scanf("%d",&sec);
if (sec<60)
printf("%d :%d : %d",hr,min,sec);
else if(sec>=60)
min=int(sec/60);
sec=int(sec%60);
printf("%d: %d : %d",hr,min,sec);
else if (sec>=3600)
min=int(sec/60);
sec=int(sec/60)
hr=int(min/60);
printf("%d : %d : %d",hr,sec,min);
}
Multiply by time. ft3 / sec * sec = ft3
20/meter/minut into km/sec
Hr/60 mins/60 sec
#include <stdio.h> #include <math.h> void main() { int tim_intrval, counter,time; float accl, distance=0, velos; clrscr(); printf("PROGRAM FOR CALC TOTAL DISTANCE TRAVELED BY A VECHIAL"); printf("\nNO OF TIME INTERVALS : "); scanf("%d",&tim_intrval); for(counter = 1; counter <= tim_intrval; counter++) { printf("\nAT T%d TIME(sec) : ",counter); scanf("%d",&time); printf("\tVELOCITY AT %d sec (m/sec) : ",time); scanf("%f",&velos); printf("\tACCLERATION AT %d sec (m/sec^2): ",time); scanf("%f",&accl); distance += (velos*time + (accl*pow(time,2))/2); } printf("\nTOTAL DISTANCE TRAVELLED BY VEHICLE IN %d INTERVALS OF TIME : %f",tim_intrval,distance); getch(); }
1 litre per sec = 0.001 cubic metres per sec.
9.314m3/sec is about 328.92ft3/sec
499.2 seconds
Divide by 60.
10713600 sec
Sec/60/60/24
For starter, 1 rad/S = 0.159 rev/S
cm/sec, yes? ok, divide by 100 to go from cm to m. then multiply by 3600 to go from sec to hr