SHARE
TWEET

Paritatea sumei a ultemelo cifre a doua numere

ValerianBenchea Oct 21st, 2019 70 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 a, b;
  8.     cout<<"a=";
  9.     cin>>a;
  10.     cout<<"b=";
  11.     cin>>b;
  12.     if((a%10+b%10)%2==0)
  13.     cout<<"Suma este para";
  14.     else
  15.     cout<<"Suma nu este para";
  16.  
  17.     return 0;
  18. }
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