Answer Posted / nilaksh
#include<stdio.h>
#include<conio.h>
void main()
{
int i, n;
clrscr();
printf("\nHow many odd numbers?");
scanf("%d",&n);
for(i=1;i<=n*2;i++)
printf("\n %d",i);
getch();
}
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
c language interview questions & answer
can we implement multi-threads in c.
Explain built-in function?
What are different types of variables in c?
What are types of functions?
List the variables are used for writing doubly linked list program.
What are the features of the c language?
How can I prevent another program from modifying part of a file that I am modifying?
What is the difference between a free-standing and a hosted environment?
Ow can I insert or delete a line (or record) in the middle of a file?
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]
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
In which header file is the null macro defined?
How do you determine a file’s attributes?