Help me in solving BMCP03 problem

My issue

My code

// Update the _ in the code

#include <stdio.h>

int main() {
    int t,A,B;
    float X;
    int Y;
    int i = 1;
    scanf("%d", &t );
    while (i <= t){
        scanf("%d %d", &A, &B);
        X = A / B;
        Y = A / B;
        printf("%f %d\n", X, Y);
        i = i+1;
    }
    return 0;
}

Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@chaitanyakhowa
u are getting wrong answer because when u divide int/int then u will get int so when u divide X=A/B then 10/6 is become 1 instead of 1.66667 so to correct this convert A and B into decimal pint value by multiplying it by 1.0 .
Like this:-

include <stdio.h>

int main() {
int t,A,B;
double X;
int Y;
int i = 1;
scanf(“%d”, &t );
while (i <= t){
scanf(“%d %d”, &A, &B);
X = A1.0 / B1.0;
Y = A / B;
printf(“%lf %d\n”, X, Y);
i = i+1;
}
return 0;
}