Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~153 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for fza.h

#include <iostream.h> #include <conio.h> void main() { clrscr(); int high=0; int low=0; int number; cout<<"Enter in the number"<<endl; cin>>number; high=number; low=number; for (int count=0;count<4;count++) { cout<<"Enter in the number"<<endl; cin>>number; if(number>high) high=number; if(number<low) low=number; } cout<<"\nThe highest number is:"<<high; cout<<"\nThe lowest number is:"<<low; getch(); } i cant understand this code …

Member Avatar for kekz0r
-1
101
Member Avatar for fza.h

#include <iostream.h> #include <conio.h> void main() { clrscr(); int high=0; int low=0; int number; cout<<"Enter in the number"<<endl; cin>>number; high=number; low=number; for (int count=0;count<4;count++) { cout<<"Enter in the number"<<endl; cin>>number; if(number>high) high=number; if(number<low) low=number; } cout<<"\nThe highest number is:"<<high; cout<<"\nThe lowest number is:"<<low; getch(); }

Member Avatar for csurfer
0
52