Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

"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


Please Help Members By Posting Answers For Below Questions

How to delete a node from linked list w/o using collectons?

2774


What is a program flowchart?

1187


Explain what is the best way to comment out a section of code that contains comments?

1129


What is a stream water?

1207


What is c language and why we use it?

1067


What is the difference between abs() and fabs() functions?

1115


What is exit() function?

1004


Can you please explain the scope of static variables?

1046


What does the characters “r” and “w” mean when writing programs that will make use of files?

1469


How can I find the modification date and time of a file?

1077


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1359


How do I get an accurate error status return from system on ms-dos?

1113


Describe how arrays can be passed to a user defined function

1286


What is the correct declaration of main?

1206


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2686