Friday, October 26, 2018

Uri 1097 solution in C | Sequence IJ 3

/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/

#include<stdio.h>
main()
{
    int i,j,k=7;
    for(i=1;i<=9;i=i+2)
    {
        for(j=k;j>=k-2;j--)
        {
            printf("I=%d J=%d\n",i,j);

        }
         k+=2;
    }
    return 0;
}


 //Happy_Coding

No comments:

Post a Comment