Advertisement
laith-0093

C++

Jan 19th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int fun(int num)
  6. {
  7. return num / 2;
  8.  
  9. }
  10. void main()
  11. {
  12. //Breakpoint Example
  13.  
  14. int num;
  15. cout << " Enter num: ";
  16. cin >> num;
  17.  
  18. int Array[5];
  19. for (int i = 0; i < 5; i++)
  20. Array[i] = num *i;
  21.  
  22. if (fun(num))
  23. {
  24. cout << "The number is greater than or equal 2" << endl;
  25. }
  26. system("pause");
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement