how can i get the output
54321
4321
321
21
1
in c programming........???? pls help......
Answer Posted / jayaraj.s
#include<stdio.h>
main()
{
int a,b;
for(a=5;a!=0;a--)
{
for(b=a;b!=0;b--)
{
printf("%d",b);
}
printf("\n");
}
getch();
}
Is This Answer Correct ? | 86 Yes | 16 No |
Post New Answer View All Answers
Why are all header files not declared in every c program?
How many main () function we can have in a project?
What is variable in c example?
What are reserved words?
Write a program to swap two numbers without using a temporary variable?
Explain how does flowchart help in writing a program?
What are the different types of C instructions?
Explain what is the difference between text files and binary files?
What is actual argument?
how can use subset in c program and give more example
Explain c preprocessor?
List the difference between a While & Do While loops?
the question is that what you have been doing all these periods (one year gap)
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]
Difference between constant pointer and pointer to a constant.