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
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is static identifier?
explain what are actual arguments?
What is NULL pointer?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Do you know null pointer?
What is #include stdio h?
What does a function declared as pascal do differently?
What is the use of c language in real life?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is infinite loop?
What are header files in c programming?
What are qualifiers?
What is the use of void pointer and null pointer in c language?
Is it possible to have a function as a parameter in another function?