Make a program that will input type of network provider. A – for Smart and Display “SMART
USER”. B- for Globe Display “GLOBE USER” and C-for Sun Display “SUN USER”. Your program
will be terminated when you input Z.
#include<iostream>
using namespace std;
int main(){
char input;
cout<<"Enter the input type of network provider:"<<endl;
cin>>input;
cout<<"Entered input is:"<<input<<endl;
switch(toupper(input)){
case 'A':
cout<<"SMART USER"<<endl;
break;
case 'B':
cout<<"GLOBAL USER"<<endl;
break;
case 'C':
cout<<"SUN USER"<<endl;
break;
case 'Z':
break;
default:
cout<<"Entered input was invalid"<<endl;
}
return 0;
}
Output:
Comments
Leave a comment