Question: 1. Write a program that prints the numbers 1 to 4 on the same line, using the following methods. a. Using one printf statement with

1. Write a program that prints the numbers 1 to 4 on the same line, using the following methods. a. Using one printf statement with no conversion specifiers. b. Using one printf statement with four conversion specifiers. c. Using four printf statements with conversion specifiers. 2. Write a program to calculate and display the area of a trapezoid. Allow the user to enter the values for a,b and h. Trapezoid Area =1/2(a+b)h 3. Write a program that asks the user to enter a number. The program should then check if the number is greater than 1000. If the number is greater than 1000 it displays this is big. 4. Write a program that asks the user to enter two integers, obtains the numbers from the user, then prints the larger number followed by the words "is larger." If the numbers are equal, print the message "These numbers are equal." Use only the single-selection form of the if statement. Remember: Programs are to be documented. Minimum documentation is your name, the date and the purpose of the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
