❓ 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
  • 345
    Views
  • 3
    Participants
Last reply from:
CEREZO

Trending Topics

Online now

Members online
1,294
Guests online
2,455
Total visitors
3,749

Forum statistics

Threads
2,294,101
Posts
29,088,629
Members
1,208,073
Latest member
jhmrk
Back
Top