Question: Please help me write these question in CodeBlock C, thank you very much 5. (10 points) Write a program to prompt for and read in

Please help me write these question in CodeBlock C, thank you very much

Please help me write these question in CodeBlock C, thank you very

5. (10 points) Write a program to prompt for and read in an odd positive integer and produce a diamond shape on the page made up of asterisks; the number is the height, and also the breadth. 6. (11 points) Write a program that will read in and decide if a given integer is prime (a prime number is divisible by only 1 and itself). 7. (11 points) Write a C program that asks the user to enter one float at a time. As long as the user continues to enter descending floats (the newest float is less than the previous one entered) the program should report the product of the current and previous number (except for the first float entered). If the user enters a number that is not smaller than their last response, the program should tell them so and exit. You can assume that for each run of the program, the user will enter at least two floats, and will not try to trick the program; so, you do not need to check for errors in what the user types in. 8. (11 points) (This is from the previous textbook) Write a program that prompts the user to enter an integer n, then prints all even squares between 1 and n. For example, if the user enters 100, the program should print: 4 16 36 64 100

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!