❓ 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.

Similar threads

About this Thread

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

Trending Topics

Online now

Members online
1,094
Guests online
3,660
Total visitors
4,754

Forum statistics

Threads
2,307,134
Posts
29,176,838
Members
1,193,257
Latest member
thatguyG
Back
Top