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

what is stack , heap ,code segment,and data segment

2697


Is linux written in c?

1040


What are static variables in c?

1082


What are c identifiers?

1089


What is the modulus operator?

1210


int i=10; printf("%d %d %d", i, i=20, i);

1622


Explain how to reverse singly link list.

1145


What are conditional operators in C?

1100


What is difference between structure and union in c?

991


Define the scope of static variables.

1132


write a program to print data of 5 five students with structures?

2046


Can 'this' pointer by used in the constructor?

1094


Why calloc is better than malloc?

1037


Explain what is a stream?

1088


find the sum of two matrices and WAP for it.

1140