How to get the following output?

CODE




How to get the following output?
 1 4
 2 3
 3 2
 4 1

int main()
{
    int i,j;
    for(i=1,j=4;i<=4,j>=1;i++,j--)
        printf("\n %d %d",i,j);
}

Output:
 1 4
 2 3
 3 2
 4 1

How to get the following output? How to get the following output? Reviewed by Unknown on December 16, 2018 Rating: 5

No comments:

If you have any doubt or query ,comment below:

Programming copyright © 2018-19. Powered by Blogger.