Write a program in c to print
1
121
12321
1234321
123454321
Answer Posted / durai
int a, b;
for( a=1;i<=5;a++)
{
for(b=1;b<=(2*a-1);b++)
{ if(b<=a)
printf b;
else
printf(2*a-b);
}
printf
;
}
Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
How to delete a node from linked list w/o using collectons?
What is your stream meaning?
What is this pointer in c plus plus?
What is the c value paradox and how is it explained?
Write a C program to count the number of email on text
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is the best way to comment out a section of code that contains comments?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Why can arithmetic operations not be performed on void pointers?
differentiate built-in functions and user – defined functions.
How would you rename a function in C?
What are the advantage of c language?
can any one provide me the notes of data structure for ignou cs-62 paper
I came across some code that puts a (void) cast before each call to printf. Why?
What is a macro, and explain how do you use it?