What is the code to check if input number is greater than, less than or equal to 50? Loop should be continuous and command of exit should end the infinite while loop. -
![Was going through some old files, found this, not 100% sure if it qualifies (approx. from 6 years ago, when I started learning C++). : r/badcode Was going through some old files, found this, not 100% sure if it qualifies (approx. from 6 years ago, when I started learning C++). : r/badcode](https://preview.redd.it/tjie19r8qa981.png?width=640&crop=smart&auto=webp&s=dcb30e76685520544c5b740bafbe4fdb1d485b89)
Was going through some old files, found this, not 100% sure if it qualifies (approx. from 6 years ago, when I started learning C++). : r/badcode
![1 CS 1430: Programming in C++. 2 Input: Input ends with -1 Sentinel-Controlled Loop Input: Input begins with. - ppt download 1 CS 1430: Programming in C++. 2 Input: Input ends with -1 Sentinel-Controlled Loop Input: Input begins with. - ppt download](https://images.slideplayer.com/30/9516516/slides/slide_14.jpg)
1 CS 1430: Programming in C++. 2 Input: Input ends with -1 Sentinel-Controlled Loop Input: Input begins with. - ppt download
What is the code that asks the user for a value until -1 is entered and then writes how many values are entered and the sum of the entered values in C++? -
![ACM notes Can work on the problems anytime throughout the term Contest conflict -- The GRE subject test is Nov. 10th! int x; while (cin >> x) { cout << - ppt download ACM notes Can work on the problems anytime throughout the term Contest conflict -- The GRE subject test is Nov. 10th! int x; while (cin >> x) { cout << - ppt download](https://images.slideplayer.com/25/7627748/slides/slide_2.jpg)