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
Freddy Abreu
NA
40
9.4k
Count words, and skip the spaces.
Apr 10 2013 9:20 AM
Hi, this something very basic I know it, but how can I skip the spaces in this basic program please.
string
Palabras =
string
.Empty;
//int ContEspacios;
Console.
WriteLine
(
"Escribe una palabra:"
);
Palabras = Console.
ReadLine
();
foreach
(
var
X
in
Palabras.Length.
ToString
())
{
Console.
WriteLine
(
"Cuantas palabras tiene {0}:"
,X);
}
Console.
Write
(
"Press any key to continue . . . "
);
Console.
ReadKey
(
true
);
}
}
}
Reply
Answers (
6
)
Redirecting error
get values for radio button and checkox