Computer Science, asked by anilunawane1611, 1 year ago

Write a java program to calculate sum of all integers greater than 50 and less than 100 that are divisible by 5.

Answers

Answered by Anonymous
1

class SumOfDigit{

public static void main(String args[]){

 int result=0;

 for(int i=100;i<=200;i++){

  if(i%7==0)

   result+=i;

 }

 System.out.println("Output of Program is : "+result);

Similar questions