The natural mumbers less than 10 that are multiples of 3 or 7 are 3, 6,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The natural mumbers less than 10 that are multiples of 3 or 7 are 3, 6, 7 and 9. Sum- ming these gives 25. Write code that verifies this fact using loops (either for or while). Your code must sum up the results and display to the screen the following text: sum = 25 The natural mumbers less than 10 that are multiples of 3 or 7 are 3, 6, 7 and 9. Sum- ming these gives 25. Write code that verifies this fact using loops (either for or while). Your code must sum up the results and display to the screen the following text: sum = 25
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
the set D of all positive odd numbers less than 10 in *roster notation*?
-
The results in the screen display are based on a 95% confidence level. Write a statement that correctly interprets the confidence interval.
-
While amides are much less basic than amines, they are much stronger acids. Amides have pKa values in the range 14-16, whereas for amines, pKa = 33-35. (a) What factor accounts for the much greater...
-
What are the upper and lower 2.5th percentiles for a chi-square distribution with 2 df? What notation is used to denote these percentiles? Pulmonary Disease The data in Table 6.10 concern the mean...
-
Leverock's Waterfront Steakhouse in Maderia Beach, Florida, uses a questionnaire to ask customers how they rate the server, food quality, cocktails, prices, and atmosphere at the restaurant. Each...
-
Why is it important not to view the concept of whistle-blowing as tattle-telling or ratting on another employee?
-
When placed between the poles of a horseshoe magnet as shown in Figure 28.12, does a rectangular current loop experience a torque? If so, in which direction does the loop rotate? Data from Figure...
-
Donald and Gloria Bowden hosted a late afternoon cookout at their home in South Carolina, inviting mostly business acquaintances. Justin Parks, who was nineteen years old, attended the party....
-
1. 120g of an organic compound that contains only carbon and hydrogen gives 330g of CO2 and 270g of water on complete combustion. The percentage of carbon and hydrogen, respectively are (a) 25 and 75...
-
Matt and Meg Comer are married and file a joint tax return. They do not have any children. Matt works as a history professor at a local university and earns a salary of $67,300. Meg works part time...
-
(a) With the aid of a circuit diagram show how four (4) flip-flops can be' interconnected to reduce the normal 16 count to 10 count. [8 marks] [5 marks] (c) Give one advantage and one disadvantage of...
-
What restrictions apply to the dividendsreceived deduction of dividends received from debt-financed stock purchases?
-
How is book value per share calculated? Explain how inflation and R&D programs might cause book values to deviate from market values.
-
What are the benefits of installment reporting?
-
What does the price/earnings (P/E) ratio show? If one firms P/E ratio is lower than that of another firm, what factors might explain the difference?
-
Rhia Co. began operations in 2018. Are there restrictions on the tax year it may use?
-
1. Given a vector A = (-3, sqrt {3}), find the magnitude and direction of vector A. 2. Vector A has a magnitude of 4 and a direction of 60 and vector B has a magnitude of 8 and a direction of 300....
-
Global.asax is used for: a. declare application variables O b. all other answers are wrong O c. declare global variables O d. handle application events
-
In what way are glaciers like dirty snowballs?
-
Distinguish between mechanical and chemical weathering.
-
Name an environment where wind shapes the landscape to a significant degree.
Study smarter with the SolutionInn App