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