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
C# Corner
Tech Writer
8
1.4k
how to do this nested loop
Dec 15 2018 10:44 AM
a nested loop such that the inner loop is exected n times and the outer loop in executed m times.
Within the inner loop add 2 to the value of the varaible sum.
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int n = 4; int m = 3;
int sum = 0;
Console.WriteLine(sum);
}
}
}
Reply
Answers (
2
)
Visual Studio 2017 build error for .net core 2.1
arrays and using a for loop function