time calculator write a program that asks the user to enter a number of seconds in c language
#include <stdio.h>
int main(){
int seconds=-1;
while(seconds<0 || seconds>60){
printf("Enter a number of seconds: ");
scanf("%d", &seconds);
}
printf("\nSeconds: %d\n", seconds);
getchar();
getchar();
return 1;
}
Comments
Leave a comment