I have to insert a number a that appears how many bread we have . after we want the diameter of the bread and the diameter for the base of the bread for each bread . i have to check for every bread if its diameter is smaller than the base diameter i write this but i don't have right answer.
can anyone help me ?
#include<iostream>
usingnamespace std;
int main (){
int a,z,p,b ;
int num;
int t;
num=2*a;
cin>>a;
for (int i = 0; i < a; i++) {
cin>>p;
}
for (int i = 0; i < a; i++) {
cin>>b;
}
if (p<=b){
t++;
}
cout<<t<<endl;
return 0 ;
}