Photo AI

A programmer has written a C# program that asks the user to input two integers and then output which of the two integers is the largest - AQA - GCSE Computer Science - Question 4 - 2021 - Paper 1

Question icon

Question 4

A-programmer-has-written-a-C#-program-that-asks-the-user-to-input-two-integers-and-then-output-which-of-the-two-integers-is-the-largest-AQA-GCSE Computer Science-Question 4-2021-Paper 1.png

A programmer has written a C# program that asks the user to input two integers and then output which of the two integers is the largest. Complete the program by fill... show full transcript

Worked Solution & Example Answer:A programmer has written a C# program that asks the user to input two integers and then output which of the two integers is the largest - AQA - GCSE Computer Science - Question 4 - 2021 - Paper 1

Step 1

Complete the first gap

96%

114 rated

Answer

Console.Write num1;

Step 2

Complete the second gap

99%

104 rated

Answer

<

Step 3

Complete the third gap

96%

101 rated

Answer

Step 4

Complete the fourth gap

98%

120 rated

Answer

string

Step 5

Complete the fifth gap

97%

117 rated

Answer

double

Step 6

Complete the sixth gap

97%

121 rated

Answer

int

Step 7

Complete the seventh gap

96%

114 rated

Answer

num2

Step 8

Complete the eighth gap

99%

104 rated

Answer

num1

Step 9

Complete the ninth gap

96%

101 rated

Answer

num2

Step 10

Complete the tenth gap

98%

120 rated

Answer

else

Join the GCSE students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;