Last active
December 5, 2022 16:57
-
-
Save kakarot-dev/618cdf6aeca0ae0fa7f2fb01085d0ff3 to your computer and use it in GitHub Desktop.
Arihant C++ Unit Test Program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
#include <conio.h> | |
#include <stdio.h> | |
void main() { | |
clrscr(); | |
int day; | |
cout << "Enter number in the range 1 - 7 to get the corresponding day: "; | |
cin >> day; | |
switch(day) { | |
case 1: cout << "Today is Sunday"; | |
break; | |
case 2: cout << "Today is Monday"; | |
break; | |
case 3: cout << "Today is Tuesday"; | |
break; | |
case 4: cout << "Today is Wednesday"; | |
break; | |
case 5: cout << "Today is Thursday"; | |
break; | |
case 6: cout << "Today is Friday"; | |
break; | |
case 7: cout << "Today is Saturday"; | |
break; | |
default: cout << "Not a valid day"; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment