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
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
English,
6 months ago
Hindi,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago