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...

ABCDCBA
ABC CBA
AB BA
A A

Answer Posted / mathu

import java.io.*;

class MainAlpha{
public static void main(String args[])
{
for(int i=65;i<=67;i++){
System.out.printf("%c",i);
System.out.printf("\t");
}
System.out.print("");
for(int j=66;j>=65;j--){
System.out.printf("%c",j);
System.out.printf("\t");
}
System.out.println("");


for(int i=65;i<=66;i++){
System.out.printf("%c",i);
System.out.printf("\t");
}
System.out.print("\t");

for(int j=66;j>=65;j--){
System.out.printf("%c",j);
System.out.printf("\t");
}

System.out.println("");


for(int i=65;i<=65;i++){
System.out.printf("%c",i);
System.out.printf("\t");
}
System.out.print("\t");
System.out.print("\t");
System.out.print("\t");

for(int j=65;j>=65;j--){
System.out.printf("%c",j);
System.out.printf("\t");
}

}

}

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an lvalue in c?

1180


what are the 10 different models of writing an addition program in C language?

1941


Explain how are 16- and 32-bit numbers stored?

1305


What is external variable in c?

1096


What is 2 d array in c?

1087


What is structure in c explain with example?

1213


Why do we use return in c?

1047


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

2040


In C, What is the #line used for?

2322


show how link list can be used to repersent the following polynomial i) 5x+2

2395


Write program to remove duplicate in an array?

1131


What is the advantage of c?

1203


What do you mean by Recursion Function?

1178


Tell me what are bitwise shift operators?

1172


What are pragmas and what are they good for?

1058