My issue
i am using vectorapproach but no tgetting results
My code
#include <iostream>
using namespace std;
#include <vector>
int main() {
// your code goes here
while()
int response;
cin>>response;
vector<int> hello;
hello.push_back(response);
int ans=0;
for(int i=0;i<hello.empty();i++)
{
if(hello[i]%6==0)
{
ans++;
}
else if(hello[i]%5==0)
{
break;
}
}
return 0;
}
Problem Link: PCJ19C Problem - CodeChef