Question
Design a program in C using either the if/else if/else if//else construct or the switch command which will perform any one of the following four
Design a program in C using either the if/else if/else if//else construct or the switch command which will perform any one of the following four calculations depending on the value of a choice operator: a) the triangular number of a user-specified positive integer number a user-specified number of times if the user selects a value of 1 for the choice operator; b) the factorial of a user-specified positive integer number a user-specified number of times if the user selects a value of 2 for the choice operator; c) the triangular number of a user-specified positive integer number an arbitrary number of times if the user selects a value of 3 for the choice operator; d) the factorial of a user-specified positive integer number an arbitrary number of times if the user selects a value of 4 for the choice operator. Draw a flowchart representing your design.
I need this done in 2 hours please,its urgent.It has to be include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started