How can your reverse a sentence("I LOVE MY COUNTRY" to
"COUNTRY MY LOVE I")
Answers were Sorted based on User's Feedback
Answer / tanmoy saha
<?php
$main = 'I LOVE MY COUNTRY';
$main_arr = explode(' ',$main);
$rev_arr = array_reverse($main_arr);
echo implode(' ',$rev_arr);
?>
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / uday
arr=split(str," ")
for i=ubound(arr-1) to 0 step-1
revstr=arr(i)&" "
next
Is This Answer Correct ? | 5 Yes | 3 No |
Answer / ravi yellasiri
string s = "I LOVE MY COUNTRY";
// reverse string s
// "YRTNUOC YM EVOL I";
s = string.reverse(s);
// Split s with " " delimiter
string[] arr = s.split(" ");
// process till last-1 token
for(int i = 0; i < arr.Length-1; i++)
{
print (arr[i]);
print (" ");
}
// Print the last token...
print (arr[arr.Length-1]);
Is This Answer Correct ? | 1 Yes | 3 No |
Write positive and negative test cases for forgot password?
What is meant by preconditions and postconditions in a Test Case? Can anyone give an example?
22 Answers CLG, JDA, Zestwings Informatics,
what is the need for testing?
can you tell me test case for whatsapp?
7 Answers AFour Technologies, InfoBeans,
What do you mean by offshore and onshore testing?pls tell the models of this testing?
There is a field in the form...if i will put a number it will give the square of the number as output..it takes numbers from 1 to 100!!! how to test it???
Mapping the test cases with the requirement. What is this process called?
What techniques will cause double-byte problems to show up?
Hi, Plz have a look on the following questions? Test Life Cycle, Regression,Performance, diff b/w system & integration, SDLC..
what is CMMI and CMM standards and what r software Quality certifications.please explain me clearly
What is CRUD testing
1.what is function incrementation and Bing- Bang 2. Drivers are also known as: a. Spade b. Test harness c. scaffolding