CBSE BoardEnglish MediumSTD 10COMPUTER APPLICATIONSPYTHON2 Marks
Question
Write a program to take three numbers as input and print the largest out of them. All the numbers are distinct.
✓
Answer
ni = int (input ("First number:")) n2 = int (input ("Second number:")) n3 = int (input ("Third number")) if nl > n2 and n1 > n3: print (nl," is the largest number") elif n2 > n3 and n2 > n1: print (n2, "is the largest number") elif n3 > nl and n3 > n2: print (n3, "is the largest number")
Need a full question paper?
Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.