12344321
123 321
12 21
1 1 how i print this program??
Answer Posted / venkat
#include<stdio.h>
void main()
{
int i,j,k=4,n=4;
for(i=0;i<n;i++)
{
for(j=1;j<=n-i;j++)
{
printf("%d",j);
}
printf(" ");
for(j=0;j<n-i;j++)
{
printf("%d",k-j);
//k--;
}
--k;
printf("
");
}
}
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
Which is an example of a structural homology?
What is the maximum length of an identifier?
How do you sort filenames in a directory?
What is the purpose of void pointer?
What is the use of sizeof?
What is the advantage of c?
Explain union.
What is the difference between strcpy() and memcpy() function in c programming?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is the use of static variable in c?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Ow can I insert or delete a line (or record) in the middle of a file?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?