Want to build the ChatGPT based Apps? Start here
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
anti virus
2.2k
17
2.8k
for loop help with this problem?
Dec 17 2018 2:12 PM
result i should be getting is 1086420 but im getting '101112' anyone see any mistakes?
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
string result = "";
for (int i = 10; i < 13; i++)
{
result += i;
}
Console.WriteLine(result);
Console.ReadLine();
}
}
}
Reply
Answers (
1
)
a for loop problem
Getting error and warning in window application in C# VS