Write a C++ program that uses while loop to prompt the user to enter 10 integers and the program will calculate the total for all numbers that are smaller than 20. Display the total.
1
Expert's answer
2011-02-03T10:02:48-0500
#include "stdafx.h"
int main(int argc, char * argv[]){
int count = 0;
for(int i = 0; i < 10; i++){ & int in;
& printf("Input number %d: ", i); & scanf("%d", &in);
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
You are welcome.
Leave a comment