Skip to content

Instantly share code, notes, and snippets.

@kakarot-dev
Last active December 5, 2022 16:57
Show Gist options
  • Save kakarot-dev/618cdf6aeca0ae0fa7f2fb01085d0ff3 to your computer and use it in GitHub Desktop.
Save kakarot-dev/618cdf6aeca0ae0fa7f2fb01085d0ff3 to your computer and use it in GitHub Desktop.
Arihant C++ Unit Test Program
#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