TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anndy smaals
NA
24
4.3k
loop that identify values
Dec 15 2018 2:25 PM
a for loop that identifies all the values between the lowerBounds and the upperBounds inclusive that are evenly divisible by 5 (e.g. 5, 10, 15)
and adds them to the variable sum.
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int lowerBounds = 1;
int upperBounds = 1000;
int sum = 0;
Console.WriteLine(sum);
}
}
}
Reply
Answers (
1
)
help with a foreach loop condition
adding a nested if statement