Posted By: rash20 |
5/8/2007 3:47:00 AM |
|
|
im just new in c programming.I hope you could help me with these following problem.
1. write a program that reads positive integers until end-of-file and then prints the largest and smallest values.
2. write a program that reads integers until end-of-file and then prints the largest and the second largest values?
3. write a program that reads integers until end-of-file and then prints YES if the numbers do not decrease and NO otherwise.(the numbers do not decrease if for every pair n1, n2 in succession we have n1
4. write a program that reads integers until end-of-file and then prints the maximum sum of consecutive values.
pls help me i need it before thursday...please..thank you very much...
|
|