posted by .

1. while(c <= 5)
{ product *= c;

2. while ( z > 0 )
sum = sum + z;

3. x = 1;
while (x <=10 );

4. The following code should print the values 1 to 10
n = 1;
while ( n < 10 )
cout < n++ < endl;
5. While (x <=100)
total = total + x;

  • C++ -

    I forgot to mention that there are errors with each code and to identify them and fix them. Thanks.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. math

    Find the two numbers that multiply to the product number and add to the sum number of the following: a)Product 563033256; Sum 51895 b)Product -43481220; Sum 28429 c)Product 2545124358; Sum -105619 I tried xy = product and x+y = sum, …
  2. English

    1. While he was based on the sketches, Degas painted in his studio. 2. While he was walking on the street, he met a friend of his. 3. While he was driving, he sometimes smoked. 4. While he was chatting, he drank coffee from time to …
  3. bca

    ____ is the code of acceptable behaviors users should follow while on the Internet; that is, it is the conduct expected of individuals while online.
  4. Math

    The sum of 16terms oe an A.P is -504,while the sum of its 9terms is -126.Find the sum of its 30terms
  5. Math

    Sum of4th and the 6th terms of an a,p is 42 . While the sum of the 3rd and 9th terms of the same a.p is 52. Find the (a) first term (b)common difference (c) sum of the first ten terms of the progression. Solution
  6. Computer science

    How to convert from decimal to binary in matlab.....this is what I have so far..... dec = 43; i = 1; sum=0; while dec>0 r = rem(dec, 2); sum=sum+(i*rem); dec=dec/2; i=i*10; end sum
  7. math

    The sum of the first 12terms of an arithmetic progression is 135 while the sum of the next 8 terms is 210. Find the common difference
  8. programming

    I had to create a c code that gets a number, returns how many digits it has,the digits sum, the digits product, to check if the digits sum is equal to product if yes return "1" else return 0, and in the end write a program the prints …
  9. Maths

    half of the sum of two number is 7,while one third of their product is 16,find the numbers
  10. maths

    the sum of 8th term in an a.p is 150 while the sum of 20th term is 880.find the 43rd term and the sum of the 12term

More Similar Questions