fork download
  1. #include <iostream>
  2. #include <conio.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. // Table of a given number
  8. int a;
  9. cout << "Enter a positive integer: ";
  10. cin >> n;
  11.  
  12. for (int i = 1; i <= 10; ++i) {
  13. cout << n << " * " << i << " = " << n * i << endl;
  14. getch()
  15. return O;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:19: fatal error: conio.h: No such file or directory
 #include <conio.h>
                   ^
compilation terminated.
stdout
Standard output is empty