Saturday, August 27, 2016

uri- 1097 - Sequence IJ 3

#include <stdio.h>

int main()
{
   int i, j=7;

        for(i=1;i<=9;i++){

           printf("I=%d J=%d\n", i,j);
            printf("I=%d J=%d\n", i,j-1);
             printf("I=%d J=%d\n", i,j-2);
             j+=2;
             i++;

        }

   return 0;
}

No comments: