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

what is compiler

1883


explain about scope and storage class in oops

2683


hey..... anybody here from CG? i m from CG n have been selected in the written xam sbi(clerical).interview date is 5/5/2010. answer me if anybody is there 4m CG

1848


How to calculte strengh of scaffoling(indian)

2126


Define function ? Explain arguments in functions ?

2120


Write a nonrecursive routine to reverse a singly linked list in O(N) time.

3607


What is the use of generics? when was it added to jdk?

2092


what are differences between composition and inheritance in c

1553


how can one get scholership based on gre score ang how much scholarship one can get, plz suggest the way one can apply and get scholarship

3290


what kind of questions generally asked for ME admission, (specially in RGPV).

2057


differance between radix sort and radix exchange sort

3241


convert 140 N.m/cm^2 to N.m/mm^2

2042


program for inter process communicatin using message sharing in unix c

1879


What is the purpose of dampening roller

1716


why u r shifting from engineering to other field ?

2187