Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #define PI 3.14 // tworzymy komendę preprocesora o nazwie PI która przy wywołaniu w miejsce PI wstawi 3.14
- using namespace std;
- int main()
- {
- cout << PI << endl; // wywołujemy PI (możemy to sobie mnożyć/dodawać itd)
- cout << PI * 3 << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement