Ask Question
15 July, 00:04

Write a program that assigns two integer values from standard input to the variables int1 and int2, then prints "true" if they are equal, and "false" if they are not. submit

+4
Answers (1)
  1. 15 July, 03:00
    0
    C# program code:

    int int1;

    int int2;

    Console. WriteLine ("Insert first number");

    int1 = Console. ReadLine ();

    Console. WriteLine ("Insert second number");

    int2 = Console. ReadLine ();

    if (int1 = = int2)

    {

    Console. WriteLine ("true");

    }

    else

    {

    Console. WriteLine ("false");

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program that assigns two integer values from standard input to the variables int1 and int2, then prints "true" if they are equal, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers