0
Wap to take n numbers from the user and print Largest and Second Largest number out of that
Please answer quickly and please don't use list
4 Antworten
+ 3
Here's a couple ways in python
https://code.sololearn.com/cVqEO7Gc3bQ8/?ref=app
Java
https://code.sololearn.com/cDbXK8UvmP75/?ref=app
Edit: codes updated for bug fixes. Thanks Ipang !
+ 1
Share your attempt
+ 1
Harsh,
Please specify language name in tags above ☝
0
a=int(input("Enter the number of terms you want to enter":))
for i in range(1,a+1):
print(float(input("Enter the number:")))
After this I don't know what to do.
Please reply fast if possible I will be thankful to you.