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

what is bit rate & baud rate? plz give wave forms

1978


What is wrong with this declaration?

1105


Why malloc is faster than calloc?

1063


Should I learn c before c++?

1232


Is fortran faster than c?

1041


How can I write functions that take a variable number of arguments?

1128


Compare and contrast compilers from interpreters.

1117


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1933


Explain what is the benefit of using an enum rather than a #define constant?

1220


What is difference between arrays and pointers?

1070


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1316


What is difference between structure and union with example?

1056


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1374


How to get string length of given string in c?

1067


Can we increase size of array in c?

964