https://www.codechef.com/START12C/problems/MAKEDIV3

void solve()

{

//codes start here

```
int a;
cin >> a;
```

if(a==1){

cout<<3;

}

else{

int remain=0;

remain = a-2;

cout<<1;

while(remain–){

cout<<0;

}

cout<<2;

}

cout<<endl;

}

https://www.codechef.com/START12C/problems/MAKEDIV3

void solve()

{

//codes start here

```
int a;
cin >> a;
```

if(a==1){

cout<<3;

}

else{

int remain=0;

remain = a-2;

cout<<1;

while(remain–){

cout<<0;

}

cout<<2;

}

cout<<endl;

}

For each testcase, output a single line containing an N-digit

oddpositive integer

(My emphasis :))

2 Likes

okay thank you

I got it I am printing even not odd

thank you

1 Like