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

int i=~0; uint j=(uint)i; j++; printf(ā€œ%dā€,j); what is the use of "uint" int the above code

2359


What is CRC? the material will be used in electrical stampings.

2010


what are the reseach done by itc brfore launching e-copal

1874


what is the diffeence between SQL and ORACLE?

1854


What is the difference between a gun and a rifle and what advantage does a spinning bullet have?

1397


what in 4th and 5th normal form ??

2163


Which software model is best suited for the Maintenance kind of project?

2685


i want to do oracle certification..could any one pleas tell me what is the level 1 certification exam in oracle? how do we get dumps?

1995


write a c program which accept input as:Anu.B.Kapur and give out as:Kapur.A.B using pointers

1783


i want to know ,If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits.

2331


which is the better form java or .net?exactly when we have to choose particcular 1 among them?

1785


what is JAR file,JNI,JFC??

2648


I am refused L1-B visa filed by my employer on May 09 by US consulate Chennai. When i am eligible to apply L1-B visa again through my employer?

2293


what is difference betweeen operator overloading & operator overriding?

2169


Let an denote the number of bit strings of length n that do not have two consecutive zeroes. Find a recurrence relation for the number of bit strings of length n that do not have two consecutive zeroes. Hence find a4.

2393