Advertisement
ULK

Лабораторная №5 (2)

ULK
Oct 23rd, 2022
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int a,b,c;
  9.     cout<<"Enter 3 numbers: ";
  10.     cin>>a>>b>>c;
  11.    
  12.    
  13.     if (a%2==0)
  14.         cout<<a<<" is an even number"<<endl;
  15.     if (b%2==0)
  16.         cout<<b<<" is an even number"<<endl;
  17.     if (c%2==0)
  18.         cout<<c<<" is an even number"<<endl;
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement