progrem to generate the following series
1
12
123
1234
12345
Answer Posted / banavathvishnu
main()
{
int a;
int temp =0;
for(i=1;i<=5;i++)
{
temp = temp *10 +i;
printf("%d",temp);
}
| Is This Answer Correct ? | 23 Yes | 19 No |
Post New Answer View All Answers
What is the use of in c?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
is it possible to create your own header files?
How to write a multi-statement macro?
Can you write the function prototype, definition and mention the other requirements.
How can you increase the size of a statically allocated array?
Describe the order of precedence with regards to operators in C.
What is derived datatype in c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Is fortran still used today?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What is the purpose of type declarations?
Where are some collections of useful code fragments and examples?
What does main () mean in c?