Write a program in c to print
1
121
12321
1234321
123454321
Answers were Sorted based on User's Feedback
Answer / vivek raghuwanshi
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k,num;
cout<<num;
for(i=1;i<=num;i++)
{
for(j=1;j<i-1;j++)
{
cout<<" ";
}
for(k=1;k<i;k++)
{
cout<<k;
}
for(k=i;k>=1;k--)
{
cout<<k;
}
}
}
| Is This Answer Correct ? | 13 Yes | 31 No |
write a method for an array in which it can display the largest n next largest value.
What is strcmp in c?
How to write a program for swapping two strings without using 3rd variable and without using string functions.
How can we allocate array or structure bigger than 64kb?
what is purpose of fflush(stdin) function
whether itis a structured language?
hi any body pls give me company name interview conduct "c" language only
what are the facialities provided by you after the selection of the student.
How can I find leaf node with smallest level in a binary tree?
how could explain about job profile
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
write a program to display reverse of a number using for loop?