C Programming and Technical Programming Program

write a program without using main in c?

Read Solution (Total 7)

C Other Question

write a c program for addition of two numbers, without using "+" operator? 1. Write a program that lets you enter a number of hours, and that converts it to days and hours. For example, 111 hours = 4 days and 15 hours. You can write separate subroutines to calculate the days and hours, or just do the calculations in the main program.

2.
Write a program that prints the largest of the 5 numbers that you entered. Write the appropriate kind of loop which will cause the user to enter 5 numbers, then have an “if statement” inside the loop which checks each new number against the current max value. When initializing the max number, make it be something very small, so that the first number entered by the user is guaranteed to be the new max.