Answer:
public class num9 {
public static void main(String[] args) {
int sum =0;
int num =5;
for(num =5; num<=500; num+=5){
System.out.println(num);
sum +=num;
}
System.out.println(sum);
}
}
Explanation:
- Declare and initialize the variables sum and num
- Use a for loop with the condition for(num =5; num<=500; num+=5) Since the loop will increment by 5 and run from 5 to 500
- Within the loop, add num to sum at each iteration
- Print all elements on seperate lines
- Outside the loop, print the final value of sum
Create a for loop
Answer:
True
Explanation:
in function guess:- a = x; b = y; c = z
so 45 > 31 AND 45 < 38
since both the stements are true
True is printed
Answer:
how many event you have been too in the last month (well non during this time but as an example)
Explanation:
Answer:
HTML elements are delineated by tags, written using angle brackets.
Explanation:
Tags such as <img /> and <input /> directly introduce content into the page.
Answer:
=IF(B2>=23,"Yes","No")
Explanation:
Given
Name = Kay Colbert
The Name column can't be used to determine the eligibility of a student to the transport.
What is needed is the corresponding age column of Kay's age.
Assume that the age column is B2 and the result column is C2 (See Attachment)
Enter the following in C2
=IF(B2>=23,"Yes","No")
This will return "Yes" without the quotes in cell C2 if B2 is greater than 23
Else, it'll return "No" without the quotes.
To drag the formula to other column, follow the instructions below
Select cell C2.
Rest your cursor in the lower-right corner so that it turns into a plus sign (+), like this:
Drag the fill handle downwards