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 / dhruv sharma rkdf

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

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2451


Why we not create function inside function.

2206


In which header file is the null macro defined?

1351


Why do we use stdio h and conio h?

1094


What is the sizeof () a pointer?

998


What is methods in c?

1103


Can a pointer point to null?

1071


write a program fibonacci series and palindrome program in c

1051


What is maximum size of array in c?

1047


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1286


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1137


What is the use of pragma in embedded c?

1063


What is the concatenation operator?

1156


i want to know the procedure of qualcomm for getting a job through offcampus

2475


please explain every phase in the "SDLC" in the dotnet.

2624