fork(1) download
  1. #include <iostream>
  2. using namespace std ;
  3. int m , n , t,rem, num, i, j;
  4. int main(){
  5. cout << "Enter the natural number "<< '\n' ;
  6. cin >> m ;
  7. for (i=1; i<m; i++) {
  8. for (j=4; j<i; j++) {
  9. rem = i+j ;
  10.  
  11. }
  12. cout << rem<< '\n' ;
  13.  
  14. }
  15.  
  16.  
  17.  
  18.  
  19. return 0 ;
  20. }
Success #stdin #stdout 0s 3100KB
stdin
Standard input is empty
stdout
Enter the natural number