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 3 4 5
2 3 4 5
3 4 5
4 5
5

Answer Posted / letskools

I think th correct program is this for the above output
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();

for(i=0;i<=5;i++)
{
for(j=i;j<=5;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 02d in c?

1062


What is meant by initialization and how we initialize a variable?

1039


What extern c means?

990


Explain what is meant by high-order and low-order bytes?

1036


What is the difference between functions abs() and fabs()?

1134


Explain the priority queues?

1068


Calculate 1*2*3*____*n using recursive function??

2020


Explain why can’t constant values be used to define an array’s initial size?

1341


Explain the process of converting a Tree into a Binary Tree.

2656


What is the stack in c?

1119


Is c programming hard?

1004


What is the purpose of 'register' keyword in c language?

1010


What is the general form of function in c?

1011


Explain the concept and use of type void.

1100


What is the best way to comment out a section of code that contains comments?

1327