Answer Posted / satrughna sethi
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
printf("enter a number");
scanf("%d",&i);
for(int n=1;n<=5;n++)
{
j=i%10;
i=i/10;
printf("%d",j);
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
what is different between auto and local static? why should we use local static?
What are qualifiers and modifiers c?
Can we declare a function inside a function in c?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is structure pointer in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is a pointer in c?
What is property type c?
What are the salient features of c languages?
What is a macro, and explain how do you use it?
How to explain the final year project as a fresher please answer with sample project
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]
Is c is a low level language?
What is a struct c#?
Why does the call char scanf work?