//*** Introducing using of the functions *** /* This is the second example of timeconvert function. It returns an output to the main program. Then the output will be printed on the screen by the main function. */ #include #include //Defining Our Function int timeconvert(void) { int t,h,m,s; clrscr(); printf("Enter your time in the following format:\nhours\nminutes\nseconds\n"); scanf("%d%d%d",&h,&m,&s); t=(h*3600)+(m*60)+s; return t; } //Starting The Main Body void main() { int x; x=timeconvert(); printf("The total time is equal to %d seconds.\n",x); getch(); }