+ 1
while and if statements
how do i put "If" statement in a "while" statement? im new
2 Respuestas
+ 5
Like This :-
while ( [condition] )
{
if ( [condition] )
{
}
}
+ 1
Just as you put any statement in the main function: you write it within the statement body - that is between the curly braces { }