fork download
  1. /* Program dengan Dua Counter */
  2.  
  3. #include <stdio.h>
  4. int main () {
  5. int i, j, m, n;
  6. scanf("%d %d", &m, &n) ;
  7. for (i=1; i<=m; i++) {
  8. for (j=i; j<=n; j++) {
  9. printf("%d", j ) ;
  10. if (j==n)
  11. printf("\n") ;
  12. else
  13. printf(" ") ;
  14. }
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5320KB
stdin
3 5
stdout
1 2 3 4 5
2 3 4 5
3 4 5