Question: C++ Fast please Write a program in C++ to do the following tasks. a) Read a number N from the user. b) Using recursion generate

C++

Fast please

 C++ Fast please Write a program in C++ to do the
following tasks. a) Read a number N from the user. b) Using

Write a program in C++ to do the following tasks. a) Read a number N from the user. b) Using recursion generate and find sum of the numbers which are divisible by 3 starting from N and ends with 0. c) Print the numbers and sum as shown in the below output Note: A number is divisible by 3 if the remainder after dividing the number with 3 is zero. Sample output 1: Enter a number: 15 Numbers are: 15 12 sum of the numbers are:45 9 3 Sample output 2: Enter a number: 20 Numbers are: 18 15 sum of the numbers are:63 12 9 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!