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

program for following output using for loop?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5

Answer Posted / devi

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

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a program flowchart?

1199


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1688


How many levels of pointers have?

1050


What is a pointer in c plus plus?

1309


Is it better to bitshift a value than to multiply by 2?

1092


How do I use strcmp?

1077


What is substring in c?

1207


What is uint8 in c?

1102


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1413


How can you increase the size of a dynamically allocated array?

1188


What is restrict keyword in c?

1109


Where we use clrscr in c?

1137


main() { printf("hello"); fork(); }

1195


differentiate built-in functions and user – defined functions.

1084


What is the return type of sizeof?

1066