SOLUTION OF URI 1145 URI SOLUTIONS No comments // 1145 (Mahmud_Jamil) BRUR // Logical Sequence 2 #include <stdio.h>int main(){ int X,Y,z,a,b=0; scanf("%d%d", &X,&Y); for(a=1; a<=Y; a++) { b++; if(b==X) printf("%d",a); else printf("%d ", a); if(b==X) { b=0; printf("\n"); } } return 0;} Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment