samedi 3 novembre 2018

In decision if else, Whenever i put the correct int number instead of printing Correct its Print Invalid

Whenever i put the correct int number instead of printing Correct its Print Invalid.

int main(void)
{
  int number = 042646;
  int pass;
  printf("Enter the PIN.\n");
  scanf("%d", &pass);/*enter code here*/
   if (pass == number)
    {
      printf("Correct\n");
    }
  else
    {
      printf("Invalid\n");
    }
    }

Aucun commentaire:

Enregistrer un commentaire