SWITCH Statement

  1. WAP to read a single digit number and print that number in words.
  2. WAP to read month in digits print it in words.
  3. WAP to read a single number and print all numbers from 1 to that number in words.
  4. WAP to read a color code (char value) and print appropriate color.
    (e.g. R – Red, G- Green, B-Blue and other char – Black)
  5. WAP to read 2 numbers and a Operator sign and perform the operation according to operator.
    (e.g.
    i/p:
    5
    7
    +

5+7=12
)

  • WAP to count total number of vowels in a string by using a switch statement
  • WAP to count total number of vowels of each type

Leave a Reply

Your email address will not be published. Required fields are marked *