Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can i make a program with this kind of output..

Enter a number: 5
0
01
012
0123
01234
012345
01234
0123
012
01
0

Answer Posted / vignesh1988i

#include<stdio.h>
#include<conio.h>
void main()
{
int m;
printf("enter the limit value :");
scanf("%d",&m);
for(int i=0;i<(2*n+1);i++)
{
printf("\n");
if(i<n)
{
for(int j=0;j<=i;j++)
printf("%d",j);
}
else
{
for(int k=0;k<=j;k++)
printf("%d",k);
j--
}
}
getch();
}

Is This Answer Correct ?    11 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I determine whether a character is numeric, alphabetic, and so on?

1070


What does int main () mean?

959


Can stdout be forced to print somewhere other than the screen?

1014


What is the description for syntax errors?

1096


What is operator promotion?

1012


what do you mean by inline function in C?

1008


What are dangling pointers? How are dangling pointers different from memory leaks?

1231


Why c is faster than c++?

979


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3475


How can I delete a file?

1016


Who developed c language?

1039


What is this pointer in c plus plus?

1026


What is abstract data structure in c?

976


Explain what is the use of a semicolon (;) at the end of every program statement?

1184


Differentiate between the = symbol and == symbol?

1208