Computer Science, asked by snehaj12161, 1 year ago

plz solve this program which contains 4 pattern and 2 series.... but use only switch case....... plz I need ur help..... I know it will take time but plz do it

Attachments:

snehaj12161: 7+10+8+11+9+12+............99
DeepuRawat: ok
snehaj12161: please correct this
snehaj12161: the correct series are....... 7+10 +8 +11 +9 +12 +.......... 99
DeepuRawat: ok i had solved the 4th and rest i will solve tomorrow and give u all last 3
snehaj12161: K....
ananya071: hey need my help
snehaj12161: yes
snehaj12161: please
ananya071: okk

Answers

Answered by DeepuRawat
1
These are last three parts of your question. I had used System.exit(0); so that it will not print + in the end of the line. You can edit them and make new patterns.
Attachments:

snehaj12161: I understood but what if we have to use switch case
DeepuRawat: nothing u just have to take a new integer variable and ask the user for 1 or 2 or 3.
DeepuRawat: then put all three program in cases.
DeepuRawat: thanks
snehaj12161: welcome
ananya071: u find it a good answer for your question
ananya071: good
Similar questions