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...

write a program whose output will be-
1
12
123
1234

Answer Posted / devi

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    51 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between exit() and _exit() function?

1080


How can a process change an environment variable in its caller?

1132


What are external variables in c?

1041


When is a “switch” statement preferable over an “if” statement?

1073


What is the difference between text and binary modes?

1128


Explain what happens if you free a pointer twice?

1019


What is a macro in c preprocessor?

1056


Explain how can I pad a string to a known length?

1127


Why is c platform dependent?

1027


Which is better pointer or array?

978


What are the advantages of using Unions?

1069


What is the difference between class and object in c?

1093


What are the different file extensions involved when programming in C?

1209


what is the difference between 123 and 0123 in c?

1158


What's the right way to use errno?

1089