❓ Help Ano mali dito? (C Language)

Status
Not open for further replies.
#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.

About this Thread

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

Trending Topics

Online now

Members online
1,050
Guests online
5,157
Total visitors
6,207

Forum statistics

Threads
2,354,415
Posts
29,383,599
Members
1,079,449
Latest member
Iaa
Back
Top