Pages
Home
About Me
JAVA
.NET
शायरी
C/C++
Contact us
theme
" जीतने वाले छोड़ते नहीं और छोड़ने वाले जीतते नही
"
Monday, June 4, 2012
program of series or nested loop
OUTPUT:-
0
10
010
1010
01010
#include
#include
void main()
{
int i,j,flag=0,lflag=0;
clrscr();
{
for(i=0;i<=4;i++)
{
flag=i;
for(j=0;j<=i;j++)
{
lflag=flag%2;
printf("%d",lflag);
flag++;
}
printf("\n");
}
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment