Advertisement
harisha

Ćwiczenie 1

Feb 1st, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. void f(int &x, double  y, int z, const int &a){
  4.     std::cout<<x<<y<<z<<a<<std::endl;
  5.     x=x*2;
  6.     std::cout<<x<<y<<z<<a<<std::endl;
  7.     y++;
  8.     std::cout<<x<<y<<z<<a<<std::endl;
  9. }
  10.  
  11. int main()
  12. {
  13.     int x = 6;
  14.     f(x,x,x,x);
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement