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 / pra japati apurv d

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();

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

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does #pragma once mean?

1111


Explain how can I prevent another program from modifying part of a file that I am modifying?

1037


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

1060


What is the process to create increment and decrement stamen in c?

992


What is the advantage of a random access file?

1129


Can one function call another?

1051


What is include directive in c?

1092


Suggesting that there can be 62 seconds in a minute?

996


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1035


What is c mainly used for?

1000


Who developed c language?

1039


What is a program?

1185


What is the mean of function?

1065


simple program of graphics and their output display

1938


Apart from dennis ritchie who the other person who contributed in design of c language.

1321