B03D-2019S-C2 – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12A-2019-B03D-C2 #PYTHON#7141    siteicon   siteicon  

Problem Statement - B03D-2019S-C2

Write a python method/function Count3and7(N) to find and display the count of all those numbers which are between 1 and N,

which are either divisible by 3 or by 7.

For example :

If the value of N is 15

The sum should be displayed as 7

(as 3,6,7,9,12,14,15 in between 1 to 15 are either divisible by 3 or 7)

Solution

TC++ #7141


Share

CSKC| Created: 11-Apr-2019 | Updated: 11-Apr-2019|CBSE12A-2019









Back