Advertisement
Josif_tepe

Untitled

Jan 18th, 2024
605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int a;
  6.     int b;
  7.     cin >> a;
  8.     cin >> b;
  9.    
  10.     if(a < b) {
  11.         cout << a << " e pomalo od " << b << endl;
  12.     }
  13.    
  14.     if(a <= b) {
  15.         cout << a << " e pomalo ili ednakvo od " << b << endl;
  16.     }
  17.    
  18.     if(a > b) {
  19.         cout << a << " e pogolemo od " << b << endl;
  20.     }
  21.    
  22.     if(a >= b) {
  23.         cout << a << " e pogolemo ili ednakvo na " << b << endl;
  24.     }
  25.    
  26.     if(a != b) {
  27.         cout << a << " e razlicno od " << b << endl;
  28.     }
  29.    
  30.     if(a == b) {
  31.         cout << a <<" e ednakvo na " << b << endl;
  32.     }
  33.    
  34.    
  35.     return 0;
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement