Answers

Question and Answer:

  Home  C C++ Errors

⟩ Display this kind of output on screen. 1 0 11 0 13. Display this kind of output on screen.11 01 0 14. Display this kind of output on screen. 1 1 0 1 0 15.Display this kind of output on screen. 1 2 3 4 5 6 7 8 9 10

void main()

{

int i,j;

for(i=0;i<=2;i++)

{

for(j=2;j>i;j--)

printf(" ");

for(j=1;j<(i+1);j++)

{

printf("%d",mod(j-i));

}

printf("/n");

}

getch();

}

------------------------------void main()

{

int i,j;

for(i=0;i<=2;i++)

{

// for(j=2;j>i;j--)

// printf(" ");

for(j=1;j<(i+1);j++)

{

printf("%d",mod(i-j));

}

printf("/n");

}

getch();

}

--------------------------------

void main()

{

int i,j;

for(i=0;i<=2;i++)

{

//for(j=2;j>i;j--)

// printf(" ");

for(j=1;j<(i+1);j++)

{

printf("%d",mod(j-i));

}

printf("/n");

}

getch();

}

-------------------------

void main()

{

int i,j,k=1;

for(i=0;i<=3;i++)

{

for(j=3;j>i;j--)

printf(" ");

for(j=1;j<(i+1);j++)

{

k=k+1;

printf("%d",k);

}

printf("/n");

}

getch();

}

 165 views

More Questions for you: