Click here to Skip to main content
14,937,163 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Each line in the input file will contain one or more words needed to replace /*input*/ in the statement.

The output will contain the statement provided with the /*input*/ being replaced with the word or words from the input file.

Sample Input
play video games

Sample Output
I am going to sleep this summer!
I am going to play video games this summer!
I am going to travel this summer!
I am going to work this summer!

how we can write coding using c#....
Updated 30-May-13 3:18am
joshrduncan2012 30-May-13 9:18am
smells like homework to me...
Arun-23 30-May-13 9:19am
haha if u know plz try it
joshrduncan2012 30-May-13 9:21am
Do you want someone to do the work for you? You won't find that here. We can't help you unless we have seen some effort on your part first.
[no name] 30-May-13 9:19am
And what have you tried to do to accomplish your homework assignment yourself?

1 solution

It's seem like homework
use replace function
string s = "hi hello"; 
s = s.replace("hello","All");//Note : string is case sensetive "hello" & "Hello" are different

Happy Coding!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900