Store Numbers In An Array And Print Them
mirameahoraWrite a program and flowchart. The program should ask the user for the average temperature in each of the last 12 months. After the user has entered the temperatures, the program should display them. Use a "for" loop to ask for the data, and use another "for" loop to display the data. Store the data in an array called "temperature."...
I am only looking for the flowchart as I already wrote the code:
#include <stdio.h> int main() { int i; int temps[12]; for(i=0; i<12; ++i) { printf("Enter the average temperature in month %d and press ENTER",i); scanf("%d", &temps[i]); } printf("The temperature over the past 12 months are:\n");for(i=0; i<12; ++i) { printf("% d ", temps[i]); } printf("\n"); return 0; }
- 4 years ago
- 1
Answer(1)
Purchase the answer to view it
NOT RATED
- Unit4GradedExcercise.zip
other Questions(10)
- 5 page paper
- Howard Industries Inc., operating at full capacity, sold 64,000 units at a price of $45 per unit during 2014. Its...
- essay
- Assignment
- Paper on health in the community of Anahuac, Texas
- Home work Assignment
- Three species of bird visit a bird table ruth counts the birds and the ratio is 10:25:5 what's this reduced...
- Excellent Grades
- Watch a TV series episode or movie with a hotel as a setting or in major part of the show/movie: *Quick...
- essay (english)