ValerianBenchea

Divizibilitatea cu 3

Oct 16th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n; cin>>n;
  8.     if(n%3==0)
  9.     cout<<"numarul este divizibil cu 3";
  10.     else
  11.     cout<<"numarul nu este divizibil cu 3";
  12.  
  13.     return 0;
  14. }
Add Comment
Please, Sign In to add comment