Anik_Akash

Logical Sequence 2 [NEW]

May 28th, 2020
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int n, s, i, j;
  6. scanf("%d %d", &n, &s);
  7.  
  8.  
  9. for(i=1; i<=s; i++)
  10. {
  11. for(j=1; j<n; j++){
  12. printf("%d ", i++);
  13. }
  14. printf("%d\n",i);
  15.  
  16. }
  17. return 0;
  18. }
RAW Paste Data