Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <unistd.h>
  4.  
  5. using namespace std;
  6. int sum (int a, int b){
  7.     return a+b;
  8. }
  9. int c = 123;
  10.     int one = 1;
  11.     int two = 2;
  12.     cout << sum(sum(one, two), sum(one, two)) << endl;
  13.     cout << c << endl;
  14.     for(int k=0; k<15; k++){
  15.         int r=k;
  16.         cout<< r << endl;
  17.     }
  18.  return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement