Q2 Find C Language Program Some Total Ever since I won the lottery, I’ve got so many stacks of cash that I don’t think I can count them by hand anymore! You know, not to brag or anything, but I’m going to need some help with the counting of my huge wads of cash. Since I’m rich now, I just figured I’d pay you to make a program that could count it for me. Chop chop now! Input 1. Number of cash Constraints The value is >= 1. 2. Values of each of the cash Output The first line will contain a message prompt to input the number of cash. The succeeding lines will prompt for the values of each of the cash. The last line contains the sum total of all the cash values. Enter the number of cash: 5 1 2 3 4 5 Total: 1 + 2 + 3 + 4 + 5 = 15
Q2
Find C Language Program
Some Total
Ever since I won the lottery, I’ve got so many stacks of cash that I don’t think I can count them by hand anymore! You know, not to brag or anything, but I’m going to need some help with the counting of my huge wads of cash. Since I’m rich now, I just figured I’d pay you to make a program that could count it for me. Chop chop now!
Input
1. Number of cash
Constraints
The value is >= 1.
2. Values of each of the cash
Output
The first line will contain a message prompt to input the number of cash.
The succeeding lines will prompt for the values of each of the cash.
The last line contains the sum total of all the cash values.
Enter the number of cash: 5
1
2
3
4
5
Total:
1 + 2 + 3 + 4 + 5 = 15
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images