Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- string asd;
- system ("cls");
- cout << "Detect Mobile Network\n";
- cout << "--------------------------\n";
- cout << "Mobile Number: ";
- cin >> asd;
- asd[3];
- cout << "\n--------------------------\n";
- if (asd[3] == '3' || asd[3] == '4') {
- cout << "This Number Belongs to:\nSmart Telecom";
- cout << "\n--------------------------\n";
- } else if (asd[3] == '5') {
- cout << "This Number Belongs to:\nSmart Telecom";
- cout << "\n--------------------------\n";
- } else if (asd[3] == '7' || asd[3] == '8') {
- cout << "This Number Belongs to:\nGlobe Telecom";
- cout << "\n--------------------------\n";
- } else if (asd[3] == '9') {
- cout << "This Number Belongs to:\nGlobe Telecom";
- cout << "\n--------------------------\n";
- } else if (asd[3] == '6' || asd[3] == '0') {
- cout << "This Number Belongs to:\nSam Telecom";
- cout << "\n--------------------------\n";
- } else if (asd[3] == '1') {
- cout << "This Number Belongs to:\nSam Telecom";
- cout << "\n--------------------------\n";
- } else if (asd[3] == '2') {
- cout << "This Number Belongs to:\nReserved";
- cout << "\n--------------------------\n";
- } else {
- cout << "This Number Belongs to:\nInvalid Number";
- cout << "\n--------------------------\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment