#include "g:\victor\vitodef.h" void main(void) { // ***** assignment #2: Minimax program, level 2 // ***** declarations int inputnum=0, count=0, sum=0, max, min; float average; // ***** COMMANDS clrscr(); cout<<"Input any amount of numbers. When you are done, enter a 0"<>inputnum; // ***** PREVENTS DIVISION BY 0 while (inputnum==0) { cout<<"CANNOT DIVIDE BY ZERO!! >:o("<>inputnum; } // ***** CONTROLS INPUTS while ((inputnum>1000) or (inputnum<-1000)) { cout<<"Please enter a number lower than 1001 and higher than -1001\n"; cin>>inputnum; while (inputnum==0) // ***** PREVENTS DIVISION BY 0 { cout<<"CANNOT DIVIDE BY ZERO!! >:o("<>inputnum; } } max=inputnum; min=inputnum; while(inputnum!=0) { count=count+1; // ***** COMPUTES COUNT sum=sum+inputnum; // ***** COMPUTES SUM if(inputnum>max) // ***** COMPUTES MAX max=inputnum; if(inputnum>inputnum; // ***** CONTROLS INPUTS while ((inputnum>1000) or (inputnum<-1000)) { cout<<"Please enter a number lower than 1001 "; cout<<"and higher than -1001\n"; cin>>inputnum; } } cout<<"count = "<