Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. bool myFunction (int a, int b){
  7. if (a>b){
  8. return true;
  9. } else {
  10. return false;
  11. }
  12. };
  13.  
  14. int main()
  15. {
  16. int a=100;
  17. int b=10;
  18.  
  19. if (myFunction (a, b) ) {
  20. cout<<"high";
  21. } else {
  22. cout<<"low";
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement