Gradesheets Filenames Assignment #1 Commenting syntax for if statement if ( condition ) statement; else statement; switch (variable) { case value1: statement1; break; case value2: statement2; break; default: defaultStatement; } switch ( grade ) { case 'A': case 'a': msg = "Excellent"; break; case 'B': case 'b': msg = "Good"; break; case 'C': msg = "Fair"; break; case 'D': msg = "Poor"; break; case 'F': msg = "Failed"; break; default: msg = "Unknown Value"; } for ( initialize; condition; increment ) { } int i = 10; while ( i>0 ) { i--; } int i = 0; do { x += i; // this loop will calculate the triangle value of n i++; } while ( i