My issue
output was coming but some text is display that is time limit exceeded
why this was came
My code
#include <stdio.h>
int main(void) {
int t,n,k;
scanf("%d",&t);
while(t--){
scanf("%d%d",&n,&k);
if(n>=k){
for(int i=n-1;i<=n;i--){
n=n-k;
}
printf("\n%d",n);
}
else
printf("\n%d",n);
}
return 0;
}
Learning course: Level up from 1* to 2*
Problem Link: CodeChef: Practical coding for everyone