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

In C programming, what command or code can be used to determine if a number of odd or even?

992


What is a good way to implement complex numbers in c?

997


What happens if you free a pointer twice?

1029


What are enumerated types?

1105


What is call by reference in functions?

1327


Is main a keyword in c?

1086


What does != Mean in c?

990


What is spark map function?

1060


What are the 4 data types?

967


What is the difference between int main and void main in c?

1096


how to execute a program using if else condition and the output should enter number and the number is odd only...

2211


Why is event driven programming or procedural programming, better within specific scenario?

2369


What is abstract data structure in c?

979


in iso what are the common technological language?

2051


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1098