Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Point {
- double x;
- double y;
- };
- int factorial(int n) {
- if (n <= 1) {
- return 1;
- }
- return n * factorial(n-1);
- }
- void main() {
- int count = 123;
- double pi = 3.14159;
- double e = 2.71828e+0;
- char test_char = 'a';
- int a = 5;
- int b = 10;
- int c = 0;
- if (a < b && !c) {
- while (a <= b) {
- a = a + 1;
- }
- } else {
- a = b;
- }
- double result = (a + b) * 3.0 / 2.0;
- int is_equal = a == b;
- int is_not_equal = a != b;
- int is_greater = a >= b || a > b;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement