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

Is there any difference between the concepts of encoding,decoding and encryption and decryption?

2126


A rectangular sheet dimensions a x b is to be made into an open-topped box by cutting a square of side h from each corner and folding the 4 sides up. Find the value of h which allows the maximum volume of the box?

1142


why only j2me is used for mobile???

1947


why unix commands simpler rather than complex task

2830


char *a[2]; int const *p; int *const p; struct new { int a;int b; *var[5] (struct new)} Describe the statements in the above given construct ?

3197


what is the difference between embedded system and PLC. Whether the micro controller accept future expansion of program?

4222


Can you connect Active Directory to other 3rd-party Directory Services? Name a few options.

1870


an upper layer message is split into 10 frames each of which has an 80 percent chance of arriving undamaged.if no error control is done by the data link protocol,how many times must the message be sent on the average to get the entire thing through?

3032


#include int fn(int v); main() { printf("%d\n",fn(7)); } int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; }

1885


is the RKDF university is aicte approved for b.tech in computer

1919


How many of 14 digit numbers we can make with 1,2,3,4,5 that are divisible by 4. Repetitions allowed.

2628


What is your Job Profile in IT feild.

2489


how to cable size by Amp with example

2598


Is there aptitute question will be asked in NIC exam ??? If yes how many questions will be asked??

2204


what is JAR file,JNI,JFC??

2578