Question Description: Suresh have "N" rectangles. A rectangle is Silver if the ratio of its sides is in between [1.6, 1.7], both inclusive. Your task is to find the number of silver rectangles. Constraints: 1 <= N <= 10^5 1 <= W, H <= 10^9 Input Format: First line: Integer "N" denoting the number of rectangles Each of the ''N" following lines: Two integers W, H denoting the width and height of a rectangle
C Program

#include<stdio.h>

int main(){
    int n;
    scanf("%d",&n);

    int count=0;

    while(n--){
        double width,height;
        scanf("%lf%lf",&width,&height);

        // mandatory exact format
        if(width/height>=1.6 && width/height<=1.7)
            count++;
        else if(height/width >=1.6 && height/width<=1.7)
            count++;
    }

    printf("%d",count);
    return 0;
}