Write a program to produce the following output:
1
2
3
4
5
6
7
8
9
10
Answer Posted / jjh
0
1 0 1
2 1 0 1 2
3 2 1 0 1 2 3
4 3 2 1 0 1 2 3 4
5 4 3 2 1 0 1 2 3 4 5
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
For what purpose null pointer used?
Explain what is wrong with this program statement? Void = 10;
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What are the features of c language?
How do I round numbers?
Differentiate between the expression “++a” and “a++”?
pierrot's divisor program using c or c++ code
What is the size of structure in c?
How can I make it pause before closing the program output window?
When should I declare a function?
What is the most efficient way to store flag values?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Are enumerations really portable?
explain what is fifo?