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 / sampath

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

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1336


How does normalization of huge pointer works?

1231


What is the data segment that is followed by c?

1142


What is queue in c?

1161


State two uses of pointers in C?

1109


Explain logical errors? Compare with syntax errors.

1128


What is the use of typedef in c?

1083


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2234


What is operator promotion?

1130


What are run-time errors?

1179


Write a program to print numbers from 1 to 100 without using loop in c?

1139


Can you tell me how to check whether a linked list is circular?

1500


What does printf does?

1322


How does sizeof know array size?

1172


What are pointers? What are stacks and queues?

1221