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

WHY IBM MAINFRAME TECHNOLOY IS USED.THOUGH, SINCE ITS INTRODUCTION IT HAS NO MAJOR UPDATATION OR MODIFICATION;BUT STILL IT IS IN DEMAND........WWWWWWWWWWWWWWHHHHHYYYYYYYY????????????

1550


program for inter process communicatin using message sharing in unix c

1314


why do you want to join tcs

1933


What are daemon Threads?

1891


how convert the spiral model to prototype model ?

1255






hi i am an CSE engg student and i cleared the PE exam of BEL 2012 both 24/07/012 and 01/08/2012 , so please if someone can help me with PE Interview question or subject or topics which i should cover that help me clear both Interview.PLZ help. my mail id is rjjkumar99@gmail.com

1660


what we have to say about hobbies,strong points,weak points

1775


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

2033


What do you mean by component versionig?

1448


the controller valve fisher error: travel ??? not output input ok

1362


is there any better model than jcb 3dx

1635


in which website , i can able to get the electrical basics.?????????????

1365


WHAT IS THE DIff Between candidate key and primary key?

1412


WHAT IS THE PROPER LOCATION OF SAMPLE POINT OF LPG SPHERE TANK?

1954


Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.

1548