/*
March S. Meguillo
Daniel Aranas
*/
using System;
public class Program
{
public static void Main()
Console.Write("Input a Sentence:") ;
string str=Console.ReadLine();
int word_length = 0;
String result = "";
for (int i=0; i<str.Length; i++)
if (str[i] == ' ')
result = " " + result;
word_length = 0;
} else
result = result.Insert(word_length, str[i].ToString());
word_length++;
}
Console.WriteLine("Reverse Sentence: " +result) ;