My issue
can u explain the question of reach fast
My code
i=int(input())
for i in range(t):
x,y,k=int(input())
Problem Link: REACHFAST Problem - CodeChef
can u explain the question of reach fast
i=int(input())
for i in range(t):
x,y,k=int(input())
Problem Link: REACHFAST Problem - CodeChef
include <stdio.h>
int main(void) {
int t=0;
scanf(“%d”,&t);
int i=0;
while(i<t){
int x,y,k;
scanf(“%d %d %d”,&x,&y,&k);
int count=0;
if(x<y){
while(x<y){
x=x+k;
count++;
}
}
else if(x>y){
while(x>y){
x=x-k;
count++;
}
}
printf(“%d\n”,count);
i++;
}
return 0;
}