Question: Using C Programming: 1 Write a program that continuously ask the user to enter an integer number. If the entered number is a multiple of

Using C Programming:

1 Write a program that continuously ask the user to enter an integer number. If the entered number is a multiple of 7 it is displayed on the screen and the loop is continued. If the number is not a multiple of 7 it is not displayed but the loop is continued. The loop exits only if the user enters -23 and before ending the program displays the sum of all the numbers entered by the user excluding -23.

Q.2 Write a program that will take a non-negative integer from the user and display on the screen a number with its digits in reverse order. That is, if the user enters the number 412 then the output of the program should be 214.

Q.3 Write a program that will display on the console a list of N smallest prime numbers starting from 2 where a prime number is an integer which is not divisible by any other than 1 and itself. The value of N should be larger than 10 and smaller than 30 and should be taken from the user at the beginning of the program. For instance, if N=11, your computer should display the following list: 2 3 5 7 11 13 17 19 23 29 31.

Hint: You may have to use the continue and break for Q.1.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!