/* To convert minutes into seconds */
#include<stdio.h>
#include<stdlib.h>
int main()
{
float n,b,s;
int a;
printf("Enter time in Minutes: ");
scanf("%f",&n);
a=n;
b=n-a;
s=a*60+b*100;
printf("The time in seconds:%0.2f",s);
system("pause");
return 0;
}
No comments:
Post a Comment