Hey guys
Good day...
Yesterday Trainer assigned some tasks in python like divisibility check and printing some number patterns.
We will detaily in the blog how I solved using Modulo and Float Operators.
Firstly, The problem is we need to print 34 23 12 using the given number 1234
The output which I got is
Here I binded another problem which is assigned by trainer to find the total of the printed digits that is** 34 23 12**
Second task is similiar to first one but there is small change in operations . so we need to print to** 34 12** using the given number 1234
for that
The output which I got is
Third task is little bit different we need to print 456 123 using the given number 123456
for that
The output which I got is
Thanks for Seeing and Reading my Blog , Next Blog we will see about Twin Primes ,Consecutive Primes , Divisible by 11





Top comments (0)