✍️ Get Writing Help
WhatsApp

Consecutive integers

1.How would you decide the use of one of the three loops in C for a given problem?

2. How can we use for loops when the number of iterations are not known? 3. Given a number, write a program using while loop to reverse the digits of the number. For example, the number

12345

should be written as

54321

(Hint: Use modulus operator to extract the last digit and the integer division by 10 to get

the n–1 digit number from the n digit number.)

4. The factorial of an integer m is the product of consecutive integers from 1 to m. That is,

factorial m = m! = m x (m–1) x …… x 1.

Write a program that computes and prints a table of factorials for any given m.

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102