Loop: Greater, less, divisible

Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn, how to find out numbers who are between two limits and divisible by an integer. Also count the total numbers & find the sum of those integers. Take a look at the problem.

Problem: Write a program to find the numbers that are greater than 100 and less than 250 and divisible by 7. Also find the total numbers and sum of all those integers.

Solution:



Thank you all..:)

0 comments:

Post a Comment