include<stdio.h>
int main(void) {
int b,c,d;
scanf("%d",&b);
scanf("%d",&c);
for(int i=1;i<=b+c;i++)
{ d=(3*i)+2;
if(d%c!=0)
{
printf("%d\n",d);
}
else if(d%c==0)
{
continue;
}
}
return 0;
}
What is wrong with this code? plz tell
NO LINK IS GENERATED
first mistake is you don’t use # before include
correct one
#include<stdio.h>
you have to print first b numbers
not b+c numbers
modified code
i hope this help
if you have more doubts regarding feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.