AHSAN

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
1.2 kB
2
Indexable
Never
#include <iostream>
using namespace std;

// //Basic Passwords Checker WIth if, if-else, else if & nested if.
// int main() {
//     char login;
//     string pass;
//     cout << "Do You Want To Login? y for YES n for NO" << endl;
//     cin >> login;
//     if (login == 'y') {
//     cout << "Enter Password: " << endl;
//     cin >> pass;
//     if (pass == "ahsan") {
//     cout << "Password is Correct" << endl;
//     }
//     else cout << "Password is Incorrect" << endl;
    
// }
// }

// Day Checker Uisng Switch Statement
// int main () {
// int day;
// cout << "Enter Any Number Between 1-7 " << endl;
// cin >> day;
// switch (day) {
//   case 1:
//     cout << "Today is Monday";
//     break;
//   case 2:
//     cout << "Today is Tuesday";
//     break;
//   case 3:
//     cout << "Today is Wednesday";
//     break;
//   case 4:
//     cout << "Today is Thursday";
//     break;
//   case 5:
//     cout << "Today is Friday";
//     break;
//   case 6:
//     cout << "Today is Saturday";
//     break;
//   case 7:
//     cout << "Today is Sunday";
//     break;
//     default:
//     cout << "Only Enter Number Between 1-7" << endl;
//     break;
// }
// }