Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  28
Language: C/C++
Code:
#include<iostream.h>
#include<conio.h>
void main()
{
int i,j,n;
clrscr();
cout<<"enter the maximum value";
cin>>n;
for(i=1;i<=n;i++)
{
cout<<"n";
for(j=n;j>=i;j--)
cout<<" ";
for(j=i;j<=i;j++)
cout<<i<<" ";
}
getch();
}
          
Comments: