Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
switch( Grade )
{
case 'A' : printf( "Excellent" );
case 'B' : printf( "Good" );
case 'C' : printf( "OK" );
case 'D' : printf( "Mmmmm...." );
case 'F' : printf( "You must do better than this" );
default : printf( "What is your grade anyway?" );
}
if ( var_a >= var b) // notice that equality is used.
if ( function1(var_a) == var_b ) // notice IF statement allows implicit function.
if ( var_a ) // notice IF statement tests the TRUE-FALSE of var_a.
switch( Grade )
{
case 'A' : printf( "Excellent" );
case 'B' : printf( "Good" );
case 'C' : printf( "OK" );
case 'D' : printf( "Mmmmm...." );
case 'F' : printf( "You must do better than this" );
default : printf( "What is your grade anyway?" );
}
if ( Grade == 'A' ) printf( "Excellent" );
elseif ( Grade == 'B' ) printf( "Good" );
elseif ( Grade == 'C' ) printf( "OK" );
elseif ( Grade == 'D' ) printf( "Mmmmm...." );
elseif ( Grade == 'F' ) printf( "You must do better than this" );
else printf( "What is your grade anyway?" );