Computer Science, asked by leenaratha, 7 months ago

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 Anonymous
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