Friday, October 26, 2018

Uri 1095 solution in C | Sequence IJ 1

/*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;
    for(i=1,j=60;j>=0;i=i+3,j=j-5)
    {
        printf("I=%d J=%d\n",i,j);
    }
    return 0;
}

 //Happy_Coding

No comments:

Post a Comment