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
What is meant by operator precedence?
Find MAXIMUM of three distinct integers using a single C statement
number of times a digit is present in a number
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Do you know null pointer?
Give the rules for variable declaration?
What is a program?
What is console in c language?
How will you delete a node in DLL?
What tq means in chat?
Is c dynamically typed?
where are auto variables stored? What are the characteristics of an auto variable?
What is c preprocessor mean?
What is the use of bitwise operator?
Explain low-order bytes.