Header Ads

Learn Together, Stay Connected.

সংখ্যা ঢেউ ধারা-C


#include<stdio.h>
#include<math.h>

int main()
{
int n,i;
scanf("%d",&n);
for(i=1;i<=n/2;i++)
{
if(i!=n/2)
{
printf("%d %d ",i,n-i+1);
}
else
{
printf("%d %d\n",i,n-i+1);
}

}

return 0;
}

No comments

Theme images by Dizzo. Powered by Blogger.