Online Examination System for all learner!!! coming soon..

JAVA : Program to find sum of all integer greater than 100 and less than 200, that are divisible by 5

 Code:

class findsum
//for more program please visit www.programtubenotes.blogspot.in
{
    public static void main(String args[])
    {
        int a,sum=0;
        for(a=100;a<=200;a++)
        {
            if(a%5==0)
                sum=sum+a;
        }
        System.out.println("Sum="+sum);
    }
}

Output: 

Sum=3150

C Programming Online Test 1

Following quiz provides Multiple Choice Questions (MCQs) related to C Programming Framework. You will have to read all the given answ...