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
code not compiling, cant find the problem?
Dec 8 2018 8:33 AM
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int sum = 0;
for(int sum = 0; i < 5; i++)
{
sum += i;
}
for(int i > 0; i--)
{
sum += i;
}
Console.WriteLine(sum);
}
}
}
Reply
Answers (
2
)
getting index of character and first instance
getting a substring