Question: Solve all questions using the ChIDE program. Thank you!! Exercise 1 Find the error(s) in each of the following program segments. Write in a txt
Exercise 1 Find the error(s) in each of the following program segments. Write in a txt file the corrected commands a) printf ("The value is %d ", &number); b) scanf("%d%d",&number1, number2); c) printf ('Enter a value: d) int 3d; e) printf(%f, 123.879); Exercise 2 Write a program that prints the numbers 1 to 4 on the same line. Write the program using the following methods: a. Calling the function printf) once with four format specifiers. b. Calling the function printf) four times. Exercise 3 One mile equals 1609 meters. Write a program that a) Prompts the user to write his name and saves his name in a variable called name. eg.John b) Prompts the user to give a value of miles and saves the input in variable called miles. eg.1609 c) Converts the miles to kilometers. d) Prints the following message Hi John. The destination is 1 km
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
