2 / 5
Nov 2016

hi guys, i am a newbie here n i am stuck in this problem help me. Code is

include

int main(void) {
int T;
scanf("%d",&T);
while(T--)
{
int i,b,c,j,f=0;
scanf("%d%d",&b,&c);
for(i=b;i<=c;i++)
{
for(j=1;j<=c;j++)
{
if(i%j==0)
f++;
}
if(f==2)
printf("%d\n",i);
f=0;
}
if(T!=0)
printf("\n");
}
return 0;
}

thanks :slight_smile:

  • created

    Nov '16
  • last reply

    Dec '17
  • 4

    replies

  • 1.5k

    views

  • 4

    users

  • 1

    link

9 months later

int main(void);

void setup () {
int T;
scanf("%d",&T);
while(T--)

The only error is in the first part. Then it gives me this problem;
Error compiling for board Arduino/GenuinonUno. Try this first part corrected

4 months later

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 19 12d

Want to read more? Browse other topics in C and C++ or view latest topics.