Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n, s, i;
- scanf("%d %d", &n, &s);
- for(i=1; i<=s; i++)
- {
- printf("%d ", i);
- if(i%n==0)
- {
- printf("\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement