Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- #include <string>
- using namespace std;
- bool myFunction (int a, int b){
- if (a>b){
- return true;
- } else {
- return false;
- }
- };
- int main()
- {
- int a=100;
- int b=10;
- if (myFunction (a, b) ) {
- cout<<"high";
- } else {
- cout<<"low";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement