I hate it. For example.
#include<iostream.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
int min,max,x1;
int main(){
clrscr();
cout << "\n\n\t 3-digit random numbers in 6x10 matrix:";
int i;
cout << "\n\n\t";
max = 0; min = 1000;
for(i=0;i < 200; i++){
if(i%6==0) cout << "\n\t";
if(i%60==0){
delay(700);
cout << "\n\n Wait...\n\n\t";
} //IF
x1 = 100 + random(899);
cout << x1 << "\t";
if(min>x1) min = x1;
if(max<x1) max = x1;
}
cout << "\n\n\tMIN IS " << min << "\tMAX IS " << max;
cout << "\n\n\t 0-Key to exit, others to repeat...";
while(getch()!='0'){
cout << "\n\n\t More random numbers to come...";
for(i=0;i < 200; i++){
if(i%6==0) cout << "\n\t";
if(i%60==0){
delay(700);
cout << "\n\n Wait...\n\n\t";
} //IF
x1 = 100 + random(899);
cout << x1 << "\t";
if(min>x1) min = x1;
if(max<x1) max = x1;
}
cout << "\n\n\tMIN IS " << min;
cout << "\tMAX IS " << max;
cout << "\n\n\t 0-Key to exit, others to repeat...";
}
cout << "\n\n\t Complete...\n";
getch();
return 0;
}
#include<iostream.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
int min,max,x1;
int main(){
clrscr();
cout << "\n\n\t 3-digit random numbers in 6x10 matrix:";
int i;
cout << "\n\n\t";
max = 0; min = 1000;
for(i=0;i < 200; i++){
if(i%6==0) cout << "\n\t";
if(i%60==0){
delay(700);
cout << "\n\n Wait...\n\n\t";
} //IF
x1 = 100 + random(899);
cout << x1 << "\t";
if(min>x1) min = x1;
if(max<x1) max = x1;
}
cout << "\n\n\tMIN IS " << min << "\tMAX IS " << max;
cout << "\n\n\t 0-Key to exit, others to repeat...";
while(getch()!='0'){
cout << "\n\n\t More random numbers to come...";
for(i=0;i < 200; i++){
if(i%6==0) cout << "\n\t";
if(i%60==0){
delay(700);
cout << "\n\n Wait...\n\n\t";
} //IF
x1 = 100 + random(899);
cout << x1 << "\t";
if(min>x1) min = x1;
if(max<x1) max = x1;
}
cout << "\n\n\tMIN IS " << min;
cout << "\tMAX IS " << max;
cout << "\n\n\t 0-Key to exit, others to repeat...";
}
cout << "\n\n\t Complete...\n";
getch();
return 0;
}