[ create a new paste ] login | about

Link: http://codepad.org/p2xBDN7B    [ raw code | output | fork ]

GHF - C++, pasted on Aug 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <cstdlib>

int main() {
    const int a = 51;
    const int b = 85;

    if (abs(a - b) < 100) {
        std::cout << "a and b are within 100 of each other." << std::endl;
    }

    return EXIT_SUCCESS;
}


Output:
1
a and b are within 100 of each other.


Create a new paste based on this one


Comments: