daily pastebin goal
93%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //namirane na minimalno/maksimalnoto ot dve celi chisla
  2. #include <iostream>
  3. using namespace std;
  4. int main ()
  5. {
  6. int numb1, numb2 ;
  7. char ans ;
  8. do {            
  9. cout << "Vyvedete stoinosti za purvoto i vtoroto chislo : " << endl ;
  10. cout << " Purvo chislo = " ; cin >> numb1 ;
  11. cout << " Vtoro chislo  = " ; cin >> numb2 ;
  12. if (numb1 > numb2)
  13. {
  14. cout << "Maksimalno chislo : " << numb1 << endl;
  15. cout << "Minimalno chislo : " << numb2 << endl;
  16. }
  17. else if (numb1 < numb2)
  18. {
  19. cout << "Maksimalno chislo : " << numb2 << endl;
  20. cout << "Minimalno chislo : " << numb1 << endl;
  21. }
  22. else if (numb1 == numb2)
  23. {
  24. cout << "Chislata sa ravni :) " << endl;
  25. }
  26. else
  27. cout << "Molq vyvedete pravilna informaciq" ;
  28. cout << "Iskate li da opitate otnovo (y/n) : " ;
  29. cin >> ans ;
  30. cout << "\n\n" ;
  31. }
  32. while (ans=='y'||ans =='Y');
  33. cout << "Krai na programata";  
  34. system("pause") ;
  35. return 0 ;  
  36. }
RAW Paste Data
Top