Code:#include <stdio.h> #include <stdlib.h> int main() { int u,d,n,t,r,m; float firsttry = t, firstrest = r, minutes = m; printf("Enter your parameters\n",n,u,d); scanf("%d %d %d", &n, &u, &d); getchar(); if (n >100 ) printf("You are dead dude"); if (n != 0) { m += n; //calculation t = n-u; r = t + d; {if (r == 0) printf("It took %3.0d minutes", m); else r = n; getchar(); } } return 0; }
Program does run but does not give me any answers. Anyone out there who can help me out??? Thanks