"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
What is the c language function prototype?
write a progrmm in c language take user interface generate table using for loop?
write a program in c language to print your bio-data on the screen by using functions.
Describe the steps to insert data into a singly linked list.
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
When should the register modifier be used? Does it really help?
Explain the Difference between the New and Malloc keyword.
Explain how do you determine whether to use a stream function or a low-level function?
Write a program of prime number using recursion.
What is array of structure in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
int i=10; printf("%d %d %d", i, i=20, i);
Can you please explain the scope of static variables?
What is New modifiers?
When is a void pointer used?