but here its not getting sumbitted and gives me a error
18 Arithmetic exception (core dumped) ./exe at line 4
i dont understand
I complied the program in hackerblocks and it got successfully sumbitted
but it still shows the same error
pls share hackerblocks problem link .
and ur code link.
#include using namespace std; int main(){ int n1,n2,c=1; cin>>n1; cin>>n2; for(int i=1;i<=100;i++){ if(c<=10){ if(((3i)+2)%n2==0){ continue; } else cout<<((3i)+2)<<endl; c++; } else break; } return 0; }
that is my code which was compiled in hackerblocks successfully