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
What does c value mean?
Write a program to print factorial of given number using recursion?
Sir i need notes for structure,functions,pointers in c language can you help me please
Explain what is a program flowchart and explain how does it help in writing a program?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Explain what is meant by high-order and low-order bytes?
what do the 'c' and 'v' in argc and argv stand for?
Explain how do you list files in a directory?
When a c file is executed there are many files that are automatically opened what are they files?
How do c compilers work?
How can I do serial ("comm") port I/O?
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
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Differentiate between calloc and malloc.
Tell us the use of fflush() function in c language?