All In One
একের ভিতর সব
Thursday, June 23, 2016
SOLUTION OF URI 1146
// 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;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment