This program is in c#
Class Program
{
static void main(string[] args)
{
Int count=0,i,j;
Console.writeline("Enter the string");
String s = convert.Tostring(console.readline());
for(i=0;i
if(s[i]!=' ')
{
Count ++;
}
else
{
for(j =i-1;j>=i-count;j--)
{
console.write(s[j]);
}
Count =0;
Console.write(" ");
}}
Console.readline();
}}}
Note : while entering the words give a space after the last word.
The o/p will be correctly display

chaitanya pathakPosted Nov 16, 2015, 7:22 AM
Raja TPosted Nov 13, 2015, 4:43 AM
Francis SusaimichaelPosted Nov 13, 2015, 4:06 AM
Dinesh BPosted Nov 13, 2015, 2:28 AM
Example : Hi how are you
Output. : iH woh era uoy.
Francis SusaimichaelPosted Nov 13, 2015, 1:42 AM
Raja TPosted Nov 13, 2015, 12:48 AM
Dinesh BPosted Nov 13, 2015, 12:08 AM
Francis SusaimichaelPosted Nov 13, 2015, 12:00 AM