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


Please Help Members By Posting Answers For Below Questions

Why are all header files not declared in every c program?

603


How many main () function we can have in a project?

616


What is variable in c example?

596


What are reserved words?

659


Write a program to swap two numbers without using a temporary variable?

613






Explain how does flowchart help in writing a program?

636


What are the different types of C instructions?

681


Explain what is the difference between text files and binary files?

622


What is actual argument?

593


how can use subset in c program and give more example

1506


Explain c preprocessor?

686


List the difference between a While & Do While loops?

641


the question is that what you have been doing all these periods (one year gap)

1622


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]

1961


Difference between constant pointer and pointer to a constant.

615