allennajordan681 allennajordan681
  • 30-03-2018
  • Computers and Technology
contestada

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

Respuesta :

Rodiak
Rodiak Rodiak
  • 08-04-2018
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");
}
Answer Link

Otras preguntas

Which system is the only inconsistent system? Y = 3x - 6
Collin is a new high-school graduate who would like to attend a college. His grades were average in high school, so he most likely will not receive many scholar
6. Kila is four times as old as Raka. Ifx represents Raka's age, how would you represent Kila's age? Answer:​
What happens when zandra speaks with her mother? Complete the sentence
. For the circuit shown in Figure 4, determine the value of V1. If the total circuit resistance is 3602, determine the supply current and the value of resistors
bell ringer week 28 englisg
Which of the following is a key concept in environmental epidemiology?
Using a drug is always a questionable decision, which disposes people to give bad faith arguments as justifications. Now that you're all philosophers, let's pra
Some people are always bashing the president just like others bashed the one before him. Wouldn't you think that everyone could find something to praise him for
On a NASA flight crew, each member affected, and was affected by every other member. This is an example of the crew's: A) Interdependence B) Resources C) Task C