fork download
  1. #include<iostream>
  2. using namespace std;
  3. int MyFunction(int a, int b);
  4.  
  5. int MyFunction(int a, int b)
  6. {
  7. if (a>=b)
  8. {
  9. cout<<"Wrong, a is only less,than b";
  10. }
  11. else if (a<b)
  12. {
  13. for(a+1;a<=b;a++)
  14. {
  15. cout<<a<<"\t";
  16. }
  17. }
  18. return 0;
  19. }
  20. int main()
  21. {
  22. MyFunction(1,10);
  23. system("pause");
  24.  
  25. }
  26.  
  27.  
Success #stdin #stdout #stderr 0s 4532KB
stdin
Standard input is empty
stdout
1	2	3	4	5	6	7	8	9	10	
stderr
sh: 1: pause: not found