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 the size of enum in c?
Write a program to swap two numbers without using the third variable?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
Do you have any idea about the use of "auto" keyword?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is a void * in c?
What is the best style for code layout in c?
What's the total generic pointer type?
What is keyword with example?
What are the primitive data types in c?
How can I get the current date or time of day in a c program?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What is structure in c language?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What are called c variables?