Home Forums C Programming Help with switch

Viewing 1 reply thread
  • Author
    Posts
    • #2150
      RandolpNolen
      Participant

      hey I have problem printing the answer…I have been ask to enter a number and square it or cubing it or finding the square root using a switch function! first it ask you to enter a choice(A-square B-square root C-cube)

      my problem is that when you enter any choice it work but when it asks you to enter a number and when you enter the number it prints “incorrect choiced entered”. Whats the problem?

    • #3471
      GWILouisaxwzkla
      Participant

      This seems to work:

Viewing 1 reply thread
  • The forum ‘C Programming’ is closed to new topics and replies.