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

Trending Topics

Online now

Members online
1,129
Guests online
3,451
Total visitors
4,580

Forum statistics

Threads
2,330,606
Posts
29,255,418
Members
1,151,206
Latest member
PAGPAPLANO123
Back
Top