filmov
tv
Write a program to input N number and then print the second largest number.

Показать описание
Q 15 type C || conditional and iterative statement || Sumita arora || class 11|| computer science ||
Website Link :-
Q. Write a program to input N number and then print the second largest number.
Output :-
Enter a number (for quit enter 0 (zero) )= 9
Enter a number (for quit enter 0 (zero) )= 8
Enter a number (for quit enter 0 (zero) )= 7
Enter a number (for quit enter 0 (zero) )= 6
Enter a number (for quit enter 0 (zero) )= 5
Enter a number (for quit enter 0 (zero) )= 4
Enter a number (for quit enter 0 (zero) )= 3
Enter a number (for quit enter 0 (zero) )= 2
Enter a number (for quit enter 0 (zero) )= 1
Enter a number (for quit enter 0 (zero) )= 0
8 is second biggest number
Enter a number (for quit enter 0 (zero) )= 5678
Enter a number (for quit enter 0 (zero) )= 42
Enter a number (for quit enter 0 (zero) )= 59
Enter a number (for quit enter 0 (zero) )= 41
Enter a number (for quit enter 0 (zero) )= 86
Enter a number (for quit enter 0 (zero) )= 95
Enter a number (for quit enter 0 (zero) )= 36
Enter a number (for quit enter 0 (zero) )= 0
95 is second biggest number
Website Link :-
Q. Write a program to input N number and then print the second largest number.
Output :-
Enter a number (for quit enter 0 (zero) )= 9
Enter a number (for quit enter 0 (zero) )= 8
Enter a number (for quit enter 0 (zero) )= 7
Enter a number (for quit enter 0 (zero) )= 6
Enter a number (for quit enter 0 (zero) )= 5
Enter a number (for quit enter 0 (zero) )= 4
Enter a number (for quit enter 0 (zero) )= 3
Enter a number (for quit enter 0 (zero) )= 2
Enter a number (for quit enter 0 (zero) )= 1
Enter a number (for quit enter 0 (zero) )= 0
8 is second biggest number
Enter a number (for quit enter 0 (zero) )= 5678
Enter a number (for quit enter 0 (zero) )= 42
Enter a number (for quit enter 0 (zero) )= 59
Enter a number (for quit enter 0 (zero) )= 41
Enter a number (for quit enter 0 (zero) )= 86
Enter a number (for quit enter 0 (zero) )= 95
Enter a number (for quit enter 0 (zero) )= 36
Enter a number (for quit enter 0 (zero) )= 0
95 is second biggest number
Python user input ⌨️
C Programming Tutorial 5 User Input Multiple input
#4: Get User Input in C Programming
what is structure?WAP to input name,roll & age of 5 students and display them properly using str...
Python Programming - Basic Input and Output - print and input functions
Input and Output in C++
C Programming Tutorial - 4 User Input
Lecture No 4: Write a program in C++ to input your name, address and age
5 My Python 3 12 2 User Input in Python
Write a Python Code to Input a Number And Print Its Square And Cube
Add Two Numbers From User Input | Python Example
Cpp program to input any number and print it in words
C++ Program // Write a program that input marks from the user and display grades ??
C++ Program to input 10 numbers in array and display them
Write Lines Of User Input To A File | C Programming Example
Write a Python Program to Input Week Number and Print Week Day
User Input for a List | Python Programming language Tutorial
Write Java Program -input 'a2b3c1' and Output should be 'aabbbc'
Write a Java program to input marks of five subjects Calculate and grade according to following:
C++ Example Program to Add Two Numbers ( User Input )
Java Tutorial: Getting User Input in Java
#9 Write a Program To Input the Marks and Display the Grades Accordingly using if-else in Java
Initialize An Array With User Input | C Programming Example
C++ Program Input and Output
Комментарии