ValerianBenchea

Paritatea sumei a ultemelo cifre a doua numere

Oct 21st, 2019
88
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