'My code is not printing the required result [duplicate]

#include <iostream>
#include<vector>
using namespace std;
int main() {
    int N;
    cin>>N;         
    int count=0;
    vector<int>v1(N);
    vector<int>v2(N);
    for(int i=0;i<2;i++)
    {
        int t1,t2;
        cin>>t1>>t2;
        v1.push_back(t1);
        v2.push_back(t2);
    }

I think only this piece of code has the problem


I want to increment and print the value of count but its not working.Is there any problem while dividing two integers and assigning it into float type var or something else.

    for(int i=0;i<v1.size();i++)   
    { 
        float x=(v1[i]/v2[i]);                  
        float y=(v1[i]/v2[i]);      
        if(x>=1.6 && y<=1.7)
        {
            ++count;
        }
    }
    cout<<count;
    return 0;
}
c++


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source