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 is identifiers in c with examples?
Is exit(status) truly equivalent to returning the same status from main?
Explain how do you determine whether to use a stream function or a low-level function?
Write a code on reverse string and its complexity.
What is keyword in c?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is structure padding in c?
I have a varargs function which accepts a float parameter?
What is the difference between typedef and #define?
What are preprocessor directives in c?
How do you convert strings to numbers in C?
Explain the use of 'auto' keyword
how to introdu5ce my self in serco
What is the general form of a C program?
Why is #define used?