❓ Help Ano mali dito? (C Language)

Status
Not open for further replies.

Liikii

Eternal Poster
Ano po mali ko dito bat hindi na check yung test case 3? 😶


IMG_20201213_134143.webp
IMG_20201213_134132.webp
 
#include <stdio.h>
int main()
{


char a,b,c,d;

scanf("%c%c%c%c", &a,&b,&c,&d);

if ((a=='C'||a=='c')&&(b=='O'||b=='o')&&(c=='D'||c=='d')&&(d=='Y'||d=='y'))
{
printf("Correct");
}
else
{
printf("Wrong");
}

}
 
Mali yung output na lumalabas po :(
Edit: Okay na pala kulang lang ng space thank you!
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 5
    Replies
  • 330
    Views
  • 3
    Participants
Last reply from:
CEREZO

Online now

Members online
925
Guests online
791
Total visitors
1,716

Forum statistics

Threads
2,276,317
Posts
28,969,104
Members
1,231,208
Latest member
phcFREDOMA
Back
Top