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
Explain threaded binary trees?
What are the benefits of c language?
What is a string?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Can a variable be both const and volatile?
Explain null pointer.
Distinguish between actual and formal arguments.
What are the types of operators in c?
Why do we use int main instead of void main in c?
Tell me the use of bit field in c language?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Do you have any idea about the use of "auto" keyword?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What are variables and it what way is it different from constants?
Differentiate between ordinary variable and pointer in c.