Welcome fellow students, register yourself and dive into asking questions, giving answers and helping the community learn with you.

What's wrong in this code? (help50 can't help)

0 votes
asked Mar 24 in CS50 by mrvovkin (130 points)
This is my code:

 

#include <cs50.h>
#include <stdio.h>

int main(void)
{
    int login = get_int("Inbox Login: ");
    int passw = get_int("Password: ");
    if (int login == "656"||int passw == "18062009")
    {
     
            printf("\nMessage: You are great \n and you got $500000\n");
    }
    else
    {
            
            printf("\nWrong password and/or username!\n");
    }
}

Please log in or register to answer this question.

Welcome to CS50xHelpers Q&A, where you can ask questions and receive answers from other members of the community.

187 questions

248 answers

217 comments

3,056 users

10 Online
0 Member And 10 Guest
...