Help with switch

Home Forums C Programming Help with switch

This topic contains 1 reply, has 2 voices, and was last updated by  GWILouisaxwzkla 9 years, 10 months ago.

  • Author
  • #2150


    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

    This seems to work:

You must be logged in to reply to this topic.