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
taks kamps
NA
39
6.9k
getting index of character and first instance
Dec 8 2018 8:26 AM
need to get the index of character "d" and first instance of character "n"
that what i have attempted so far
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
string greeting = "Good Morning";
int index1, index2;
index1 = greeting['d'];
index2 = greeting['n';
Console.WriteLine(index1 + ", " + index2);
}
}
}
Reply
Answers (
1
)
greater condition between two Time
code not compiling, cant find the problem?