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
What is an lvalue in c?
what are the 10 different models of writing an addition program in C language?
Explain how are 16- and 32-bit numbers stored?
What is external variable in c?
What is 2 d array in c?
What is structure in c explain with example?
Why do we use return in c?
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
In C, What is the #line used for?
show how link list can be used to repersent the following polynomial i) 5x+2
Write program to remove duplicate in an array?
What is the advantage of c?
What do you mean by Recursion Function?
Tell me what are bitwise shift operators?
What are pragmas and what are they good for?