"I LOVE MY COUNTRY"
write a c program to get "COUNTRY MY LOVE I" as the output.
Use any other programming language. It is not mandatory to
use C.
Answer Posted / debmalya paul
package Stringmltp;
import java.util.Scanner;
public class country {
static Scanner in=new Scanner(System.in);
void rev()
{
String s=in.nextLine();
System.out.print(s.substring(10,17) +" "+ s.substring(7,9) +" "+ s.substring(2,6) +" "+ s.substring(0,1));
}
public static void main(String []args)
{
country cn=new country();
cn.rev();
}
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Describe dynamic data structure in c programming language?
why wipro wase
What do the functions atoi(), itoa() and gcvt() do?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Does * p ++ increment p or what it points to?
Explain how do you determine a file’s attributes?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Explain enumerated types.
What is the use of linkage in c language?
What is anagram in c?
What extern c means?
Explain the advantages of using macro in c language?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
Explain the difference between call by value and call by reference in c language?
What is d scanf?