SHARE
TWEET

Untitled

a guest Dec 9th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.         int k, s, didziausias = 0; maziausias = 0; a
  8.  
  9.         for (int i = 1; i <= 4; i++) {
  10.         cout << "Iveskite skaiciu" << endl;
  11.         cin >> s;
  12.  
  13.         if(s > didziausias) {
  14.                 didziausias = s;
  15.         }
  16.         if(s < maziausias) {
  17.                maziausias = s;
  18.         }
  19.  
  20.         cout << "Didziausias ivestas skaicius yra " << s << endl;
  21.         cout << "Maziausias ivestas skaicius yra " << s << endl;
  22.  
  23.         return 0;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top