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
When is a void pointer used?
What is array of structure in c programming?
List the difference between a While & Do While loops?
If you know then define #pragma?
What is a example of a variable?
Why can’t constant values be used to define an array’s initial size?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
What is a pointer in c?
How can I read a binary data file properly?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
What is the purpose of scanf() and printf() functions?
Why is sprintf unsafe?
What header files do I need in order to define the standard library functions I use?