April 2022 0 6 Report
Ktoś poda mi co oznacza dana linijka w tym programie? PROSZEEEEEEEEEE


#include


using namespace std;


int main ()


{


int i, a, max, min;


for(i = 0; i < 5 ; i++)


{


cout << "Podaj liczbe: ";


cin >> a;


if(i == 0)


{


max = a;


min = a;


}


else


{


if (max < a){


max = a;


}


if (min > a){


min = a;


}


}


}


cout << " Liczba najwieksza to: " << max;


cout << " Liczba najmniejsza to: " << min;


return 0;


}

PROSZĘĘĘĘĘĘĘĘĘĘĘ

Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.