0
#include <cs50.h>
#include <stdio.h>

int main()
{
printf("Minutes:");
int n get_int();
}
4

The C syntax for variable declaration and value assignment in a single declaration is as follows

int variable_name = value;

The get_int() function returns the int equivalent to the line read from stdin and in order to assign the returned value, the correct syntax would be

int n = get_int();
| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .