Computer Science, asked by Nabeela5161, 10 months ago

Write a program to find the number of and sum of all interfere greater than 500 and less than 1000 that are divisible by 17

Answers

Answered by ShivyanshiRai
3

Answer:

class sum()

{

public static void main(String args[])

{

int i,s=0;

for (i=500;i<1000;i++)

{

if (i%17==0)

s=s+1;

}

System.out.println(s);

}

}

Similar questions