URI / BEE CROWD 1095 - Sequence IJ 1 Solution in C,C++,Python | URI - BEECROWD - BEE 1095 Solution in C,C++,Python
beecrowd | 1095
Sequence IJ 1
Adapted by Neilor Tonin, URI Brazil
Timelimit: 1Adapted by Neilor Tonin, URI Brazil
URI / BEE CROWD 1095 - Sequence IJ 1 Solution in C,C++,Python | URI - BEECROWD - BEE 1095 Solution in C,C++,Python:
Make a program that prints the sequence like the following example.
Input
This problem doesn't have input.
Output
Print the sequence like the example below.
Input Sample | Output Sample |
I=1 J=60 |
Demonstration:
URI / BEE 1095 Solution in C :
URI / BEECROWD Online Judge 1095 Solve in C : |
#include<stdio.h>
int main()
{
int i,j;
for(i=1,j=60;i<15,j>=0;i+=3,j-=5){
printf("I=%d J=%d\n",i,j);
}
}
for j in range(60,-1,-5):
ReplyDeleteif j==60: i =1
print(f'I={i} J={j}')
i+=3
#This is my Logic