Can someone help in my code I feel there is something wrong but I can't figure it out
Find the second lowest integer number write a program that prompts the user to enter a set of integer numbers and finally displays the second largest integer number in the set . To exist from the program enter -1. here is sample run into a set of integer numbers: 3 5 7 9 -1 #include <iostream> using namespace std; int main() { int integer=INT_MAX; int smallest_int=INT_MAX; while (integer != -1) { if( integer < smallest_int) { smallest_int= integer; } else if (integer< smallest_int) { smallest_int = smallest_int; } cout << "Enter a set of integer numbers: "; cin >> integer; } cout << "The second lowest number is: " << smallest_int << endl; return 0; }