Sunday, March 20, 2016

URI 1096 - Sequence IJ 2

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

No comments:

Post a Comment