Question: Write a C-code for a program that reads the weight of 30 apples. The program should read two numbers for every apple: The first number:
Write a C-code for a program that reads the weight of 30 apples. The program should read two numbers for every apple: The first number: the color of the apple (if the apple is green enter 1, and if red enter 2). The second number: the weight of the apple Your program should then calculate and print the following: 1. Average weight of all apples. 2. Number of green apples in the company 3. Find and print the color of the apple which has the lowest weight
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
