answersLogoWhite

0

public static void main(String[] args) { int count = 0; int sum = 0; for(int i = 100; i < 200; i++) { if(i%7 == 0){ System.out.println(i); count++; sum = sum + i; } } System.out.println("Number of values divisble by 7 is: " + count); System.out.println("Sum of the values divisible by 7 is: " + sum); }

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 77?

What for? There is only a 154 inside that is divisible by 77...


What positive integers are divisble a prime number?

All integers greater than one are divisible by prime numbers.


What is the smallest number that can be divisible by all integers?

There does not exist a number that is divisible by all integers. The opposite is true. The number one can divided into all integers.


Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


What is the largest integer divisible by 8589934581?

Because there are an infinite number of integers, there are an infinite number of integers that are divisible by 8589934581 (every 8589932481th to be exact). There is not one.


Can 34215 be divisible by 3?

Yes. If the integers making up the number add to a number divisible by 3, then it is divisible by 3.The integers 34215 add up to 15, so it is divisible by 3.34215/3 = 11405


What is the total number of integers between 100 and 300 that are divisible by 3?

To find the total number of integers between 100 and 300 that are divisible by 3, we first determine the smallest and largest integers in this range that are divisible by 3. The smallest integer divisible by 3 is 102, and the largest is 297. To find the total number of integers between 102 and 297 that are divisible by 3, we calculate (297-102)/3 + 1, which equals 66. Therefore, there are 66 integers between 100 and 300 that are divisible by 3.


Is 291 a composite number?

If you can add the integers and they add up to a number divisible by 3, then the number is divisible by 3.


All divisible numbers?

All positive integers are divisible by at least one number.


Are all the odd number divisible by 7?

Every number is divisible by any non-zero number. No, there are an infinite number of odd integers which are not evenly divisible by 7..


Is 6 divisible by 812?

No. No number can be divisible by a number greater than it. 812 is greater than 6 so 6 cannot be divisible by 812.


What is the smallest number evenly divisible by 4?

Of the positive integers, 4 is.