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
Explain what is gets() function?
If the size of int data type is two bytes, what is the range of signed int data type?
FILE PROGRAMMING
What is void c?
Why isn't it being handled properly?
What is hashing in c?
What do you mean by Recursion Function?
Where are some collections of useful code fragments and examples?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What is wrong with this program statement? void = 10;
What is wild pointer in c?
Is sizeof a keyword in c?
Why c is a procedural language?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
What are the ways to a null pointer can use in c programming language?