Page 60 - CTS - CSA TP - Volume 2
P. 60
COMPUTER SOFTWARE APPLICATION - CITS
case 5:
dayName = “Thursday”;
break;
case 6:
dayName = “Friday”;
break;
case 7:
dayName = “Saturday”;
break;
default:
dayName = “Invalid day”;
}
System.out.println(“The day is: “ + dayName);
scanner.close();
}
}
Output:
45
CITS : IT & ITES - Computer Software Application - Exercise 86 CITS : IT & ITES - Computer Software Application - Exercise 86