Showing posts with label
Program to find sum of all integer beteen 100 and 200.
Show all posts
Showing posts with label
Program to find sum of all integer beteen 100 and 200.
Show all posts
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
Following quiz provides Multiple Choice Questions (MCQs) related to C Programming Framework. You will have to read all the given answ...
-
In our previous tutorial we have discussed all about Inheritance. What is it? Why it is required? and its different types! Moreover, we ...
-
Input the date of birth of a person and find his age in terms of year, month and days. using class. Age Calculator of a Person Co...
-
Design a form contains a sorted list alphabetically such that the user can add the item from text to the list after click on command button...