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...

how 2 write a program of this pattern usin for loop??
1
2 3
4 5 6
7 8 9 10







Answer Posted / narendra553

#include<stdio.h>
void main()
{
int a=1;
for(int i=0;i<=10;i++)
{
a+=i;
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i want a program in c# for 100 or for a number greater than 100.....pls help

1863


What are the main assumptions that we make when we model potential flow?

994


Hi Friends, I am doing engg in comp sc in the final year from the evening college, I don't have experience in technical field. I am working in nontechnical field. I have big question that will IT companies considered me as fresher or they looks experience from me ? if you reply to my query, i am really grateful to you

1846


5. Can you work well under deadlines or pressure?

2603


Why did they used to make the mill chimneys so tall?

1277


Explain the concept of segmentaion.

2068


how to hack email id & passward

2161


I need ECIL last year Question papers for COMPUTER SCIENCE ENGG. Please

4069


What is The Need of Template?

1929


who is your role modal give in few sentances

2115


what is domain functional level in windows server 2003?

2099


PLZ SOMEONE TELL ME WHICH TYPE OF QUESTIONS IS ASKED IN HLL(Hindustan latex ltd.)mangmt trainee entrance exam?

1907


A bar of steel 24 mm in diameter was subjected to a tensile load of 60 kNs and measured extension on a 20-cm gauge length was 0.009 cm and the change in diameter was 0.00375 cm. Calculate the Bulk modulus?

1951


why this for loop doesn't work . int i; for(i=2;i=0;i--) { cout<

1843


what is the difference between public static void main (String args[]) and static public void main(String args[]) in java?

2826