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 ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does c value mean?

607


Write a program to print factorial of given number using recursion?

586


Sir i need notes for structure,functions,pointers in c language can you help me please

1932


Explain what is a program flowchart and explain how does it help in writing a program?

627


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1116






Explain what is meant by high-order and low-order bytes?

621


what do the 'c' and 'v' in argc and argv stand for?

634


Explain how do you list files in a directory?

602


When a c file is executed there are many files that are automatically opened what are they files?

576


How do c compilers work?

594


How can I do serial ("comm") port I/O?

671


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2234


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

635


Differentiate between calloc and malloc.

739


Tell us the use of fflush() function in c language?

622