how 2 write a program of this pattern usin for loop??
1
2 3
4 5 6
7 8 9 10









how 2 write a program of this pattern usin for loop?? 1 2 3 4 5 6 7 8 9 10 ..

Answer / 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

More Engineering AllOther Interview Questions

I have applied for the post of Section Engineer. plz anyone send me the previous question paper. i did my engineering in Information Technology.

0 Answers  


real time examples for basic concepts in oop

0 Answers   Wipro,


how to increase the chiller effiency?

0 Answers  


Active Directory interviews questions

1 Answers  


If there's any possiblity for the Enginnerring graduates, Who had backlogs in there acedmic to get a Good MNC job?

0 Answers  






I am going to HAL Online test for Computer Science. Can you please mail me the model question papers ?

0 Answers   HAL,


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

0 Answers  


is there increase in the pressure of water or the density of water if we go deep into the ocean.(but the density of water is 1000kg/cubic meter)?

1 Answers  


four jobs j1,j2,j3 and j4 are waiting to be run. Their expected runtimes are 9,6,3 and 5 respectively. In order to minimize average response time, the jobs should be run in the order: a) j1j2j3j4 b)j4j3j2j1 c)j3j4j1j2 d)j3j4j2j1

2 Answers   TCS, UGC NET,


What will be the output of the following program : void main() { int a,b,c; scanf("%1d %2d %3d",&a,&b,&c); printf("Sum=%d",a+b+c); } [NOTE : THE USER INPUT IS :123456 44 544] (a)Sum=480 (b)Sum=594 (c)Sum=589 (d)None of these

2 Answers  


3. Tell me about a time when you had too many things to do and you were required to prioritize your tasks.

0 Answers   Strad Energy,


Explain momentum?

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)