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 APPLIED SBIPO EXAM PLZ SEND ME THE INTERVIEW QUESTIONS AND GD TOPICS AND WRITTENEXAM QUESTIONS

1636


What is the purpose of dampening roller

1249


Please explain me gsm call scenario for a prepaid roamer calling to a prepaid roamer?

2037


Why there is Powerfactor difference when we compare to our Capacitive Panel and TNEB side?

1453


I think it is 65% in 10th, 12th n BE with a 5% relaxation in any one. For west bengal bord..what will be simple average for HS...is the additional marks would be adde with 100+200=1200.and the the average will be done. OR it will be treated 65% if somebody gets 650 in HS.? Please reply for this question......... And what is the marks criteria for infosys for experienced employee.

1652






what does the interviewer mean by saying "have a good life " cheerfully at the end of an HR interview??? is this positive to be selected reply yes or no

1472


how to use two diffirent gatway in one system

1409


W.A.P to take input of an array and display the entered no. in dos.

1597


How we can find out face expression ,what approach should be followed (like skin detection) ?

1418


Please explain why you are suitable for the position that you have applied for?

1607


sir, plz send me the question regarding DMS gr1 questions of previous year as my exam is on 27/09/08...thanking u in advance...

1793


WHY SHOULD I HIRE YOU

1533


PREVIOUS AND NEW companies positive and negative points AFTER LIVING

1670


model question papers of GrayOrange company

940


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

1448