Comment on Tutorial - Using switch Statements in C++ By Emiley J
Comment Added by : basil
Comment Added at : 2011-08-04 13:00:30
Comment on Tutorial : Using switch Statements in C++ By Emiley J
3. Write a program that will continuously ask for an integer input from the user until a negative
value is entered. Display the sum and the average of the numbers entered (not including the
negative sentinel value). (Filename: Filename: Exer6.cpp)
Example output:
Please enter number 1? 10
Please enter number 2? 8
Please enter number 3? 3
Please enter number 3? -1
Average is 7.
Computer for sum and average again [Y/N]? N
Goodbye.
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. more daitlled coding for me
View Tutorial By: fred at 2008-07-15 05:56:49
2. awesome .i really like this site. thankyou .......
View Tutorial By: Ramesh at 2013-03-13 15:08:54
3. Timely info right when I needed it. Thanks.
View Tutorial By: Electric Vehicles at 2008-12-10 15:15:25
4. How can I delete the data that I have entered into
View Tutorial By: selina at 2011-08-15 05:15:45
5. If i run this program----
View Tutorial By: pratham at 2010-09-22 10:10:11
6. javax.comm.NoSuchPortException
at javax.co
View Tutorial By: vijay at 2013-12-03 07:32:38
7. Detect OS of iphone using Java Code
View Tutorial By: Naina at 2012-07-31 11:07:09
8. Sorry, please disregard my previous comment... Tha
View Tutorial By: choco at 2010-01-03 02:21:09
9. thanks .
it helps easy to connect..
View Tutorial By: bastin at 2011-12-09 19:49:34
10. very nice thank you so much my dude
View Tutorial By: mohd at 2010-07-28 02:40:23