mardi 24 novembre 2020

C - struggling to understand how to use int function within if/ while loops

So I'm doing CS50 and struggling with an error that occurs when I include the following two lines:

 if (int i < (number -1)) 

 if (int i =< number)   

when compiling, 'error: expected expression' comes under 'int'. Am I using it incorrectly within while if statements?

Aucun commentaire:

Enregistrer un commentaire