Program1 (100 points) Create a program that will display 5 options. If the user enter 1, the program should compute the square and cube compute of an input number. 2, the program should give the first n Fibonacci sequence. 3, the program will find the factorial of n. 4, the program will find the square root of n.
[1] Square and Cube
[2] Fibonacci Sequence
[3] Factorial
[4] Square Root
[5] Exit

In every selection, the program should ask the user if he wants to repeat execution of the sub program. If the user wants to stop, the program will go back to the main menu. The program shall print “Please supply valid data!!” each time the user supply invalid data.

hi our teacher give this problem to us can anyone know how to do it in dev c++??? i really need help.

Show us your code first, displaying at least some effort on your part, and then someone may help you with whatever bit you are stuck on. However, we're not here to do your homework for you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.