/* count all, count negative, max positive */ #include #include using namespace std; int main(int argc, char *argv[]) { system("chcp 1253"); int number; /* ακέραιοι */ int pos_max = -999999; /* μέγιστο */ int count_all = 0, count_negat; /* πλήθος */ int terma; // τερματιστής cout<<"===============AGNWSTO PLHTHOS AKERAIWN=============="<>terma; cout<<"DWSE EPOMENO AKERAIO: "; cin>>number; while (number != terma) { count_all++; if (number<0) count_negat++; else if (number > pos_max) pos_max=number; cout<<"DWSE EPOMENO AKERAIO: "; cin>>number; } cout<<"TELOS EISODOY.\n"; cout<<"PLHTHOW -> "< "< "<