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 2c dna?
In c programming language, how many parameters can be passed to a function ?
Can a void pointer point to a function?
write a program to find out prime number using sieve case?
How to delete a node from linked list w/o using collectons?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
Explain how do you determine the length of a string value that was stored in a variable?
explain what is fifo?
What are the types of data types and explain?
What are the advantages of using Unions?
What is the value of uninitialized variable in c?
How can I generate floating-point random numbers?
How important is structure in life?
How can I change their mode to binary?
What is maximum size of array in c?