My issue
include <stdio.h>
#include<math.h>
int main() {
// your code goes here
int n;
scanf(“%d”,&n);
while(n–)
{
int a,b;
scanf(“%d%d”,&a,&b);
printf(“%d\n”,ceil((float)a/5)-ceil((float)b/5));
}
}
My code
#include <stdio.h>
#include<math.h>
int main() {
// your code goes here
int n;
scanf("%d",&n);
while(n--)
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",ceil((float)a/5)-ceil((float)b/5));
}
}
Learning course: Algorithmic Problem Solving
Problem Link: https://www.codechef.com/learn/course/klu-problem-solving/KLUPS20/problems/JOINING