Advertisement
BIBELLAANTONIO

Untitled

Feb 29th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int A;
  8.     int B;
  9.     int C;
  10.     int a;
  11.     cout<<"how much:";
  12.     cin>>a;
  13.     int b;
  14.     cout<<"how much:";
  15.     cin>>b;
  16.     int c;
  17.     cout<<"how much:";
  18.     cin>>c;
  19.     int n;
  20.     cin>>n;
  21.     int t;
  22.     while(a !=0 &&b!=0&&c!=0){
  23.         if(n%3==0){
  24.             cout<<"ok";
  25.         }
  26.         t++;
  27.     }
  28.     bool are fine =true;
  29.     if(n%!==0){
  30.         are ok =false;;
  31.     }
  32.     if(a+A==b+B && b+B==c+C && a+A== c+C){
  33.         cout<<"is also ok";
  34.     }
  35.     cout<<t;
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.     return 0;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement