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
I need testPalindrome and removeSpace
#include
difference between native and cross compilers
a program that can input number of records and can view it again the record
What is && in c programming?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is context in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What's the best way of making my program efficient?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Write a program to find factorial of a number using recursive function.
Why is c called c not d or e?
What is malloc() function?
what is the format specifier for printing a pointer value?
Tell me is null always defined as 0(zero)?
When should volatile modifier be used?