Skip to main content

series iteration 1

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,lim;
printf("Enter the limit:");
scanf("%d",&lim);
for(i=1;i<=lim;i++)
{
if(i%2==0)
printf("0");
else
printf("1");
}
getch();
}

Comments

Popular posts from this blog