I have a big problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lovro
    New Member
    • Oct 2007
    • 1

    #1

    I have a big problem

    hi, i don't know much about C so can you please help me with this problem

    Can you please tell me why is this wrong
    [code=c]
    #include <stdio.h>
    char main () {
    char a, b, c, d, e, f;
    scanf ("%c %c %c %c %c %c", &a, &b, &c, &d, &e, &f);
    if (('A'<=a<='Z')| |('a'<=a<='z')) && (('A'<=(b||c||d ||e||f)<='Z')|| ('a'<=(b||c||d| |e||f)<='z')) && ('0'<=(b||c||d| |e||f)<='9') {
    printf("Jest"); }
    else {
    printf("Nije"); }
    return 0;
    }[/code]
    Last edited by sicarie; Oct 5 '07, 08:14 PM. Reason: Code tags
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Did you try putting it into a compiler? It would tell you what is wrong...

    Comment

    • RedSon
      Recognized Expert Expert
      • Jan 2007
      • 4980

      #3
      Its wrong because you forgot to add CODE tags around your code, sicarie fixed it for you this time, please dont let it happen again.

      Comment

      Working...