Using the switch statement, write a menu driven program to display the following pattern....
I
I C
I C S
I C S E
Answers
Answered by
1
Explanation:
#include<studio.h>
int main(){
char a;
scanf("%c",&a);
switch (a)
{
case 'I':printf("I");break;
case 'C': printf("C");break;
case 'E': printf("E");break;
case 'S': printf("S");break;
}
}
Similar questions
Math,
3 months ago
Math,
3 months ago
Social Sciences,
3 months ago
Biology,
7 months ago
Biology,
7 months ago
Physics,
11 months ago
Social Sciences,
11 months ago