Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
758
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3.  
  4. #define PI 3.14 // tworzymy komendę preprocesora o nazwie PI która przy wywołaniu w miejsce PI wstawi 3.14
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     cout << PI << endl; // wywołujemy PI (możemy to sobie mnożyć/dodawać itd)
  11.     cout << PI * 3 << endl;
  12.  
  13.     system("pause");
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement