Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.     double n;
  6.     cin >> n;
  7.     double x,y,z;
  8.     y=n/6;
  9.     x=(32*y-n)/8;
  10.     z=7*y-x-(n/3);
  11.     cout << x << ' ' << y << ' ' << z; 
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement