Computer Science > Presentation > written computer programs with (All)
// Assignment 6a) : use array to find the number // Author : Tiancheng Liu // Description : This program will use array to find the number // Status ... : Complete // Date : March 30th ********************************************************************* #include <iostream> using namespace std; int main() { int counter; //const num means 10 number in the array const int NUM=10; int number[NUM]; int lowest,highest; cout<<"This program will let the user enter 10 "<<endl; cout<<"10 number and give the biggest and the lowest one\n\n"<<endl; //use for loop to enter the array number for(counter=0;counter<NUM;counter++) { cout<<"please enter a number"<<endl; cin>>number[counter]; } lowest=number[0]; //use for loop to find the lowest number for(counter=1;counter<NUM;count [Show More]
Last updated: 1 year ago
Preview 1 out of 11 pages
Instant download
Buy this document to get the full access instantly
Instant Download Access after purchase
Add to cartInstant download
Connected school, study & course
About the document
Uploaded On
Aug 07, 2021
Number of pages
11
Written in
This document has been written for:
Uploaded
Aug 07, 2021
Downloads
0
Views
58
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·