Question: lN C language please !! those are easy! Problem 1: Write a program that reads a positive float number and the period and not integers.
Problem 1: Write a program that reads a positive float number and the period and not integers. Sample Run Enter a float: 35 The previous and next integers are 3 and 4 Problem 2: Write a program that reads two integees and displays their sum, diference, product, and the result of their division I Sample Run Enter two integers: 85 Sum: 13, Difference: 3, Product: 40, Division: 1.6 Problem 3: Write a program that reads a three-digit integer from the keyboard and prints out the sum of its digits. The number entered by the user is guaranteed to be three-digit and will not start from a zero, You can use divisions by powers of to to isolate each of the digits Sample Run: Enter an integer: 358 The digit sum of 358 is 16 Problem 4: Write program that reads a number that represents seconds and converts it into hours minutes, and seconds Sample Run: Enter the time in seconds: 5140 3140 seconds equal 2h, 15m, and 40
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
