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 / shashi kumar c.a

#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",j);
}
}
getch();
}

Is This Answer Correct ?    13 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c header files?

990


Why do we use stdio h and conio h?

1085


Can static variables be declared in a header file?

1061


What is C language ?

1966


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

1161


What is the difference between struct and union in C?

1314


How can I convert a number to a string?

1182


Explain the use of 'auto' keyword in c programming?

1118


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

1312


Write a program to print all permutations of a given string.

1196


Why do we use return in c?

1000


What is the value of c?

1063


Describe how arrays can be passed to a user defined function

1294


What is the use of linkage in c language?

1062


Define C in your own Language.

1082