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
i want a program in c# for 100 or for a number greater than 100.....pls help
What are the main assumptions that we make when we model potential flow?
Hi Friends, I am doing engg in comp sc in the final year from the evening college, I don't have experience in technical field. I am working in nontechnical field. I have big question that will IT companies considered me as fresher or they looks experience from me ? if you reply to my query, i am really grateful to you
5. Can you work well under deadlines or pressure?
Why did they used to make the mill chimneys so tall?
Explain the concept of segmentaion.
how to hack email id & passward
I need ECIL last year Question papers for COMPUTER SCIENCE ENGG. Please
What is The Need of Template?
who is your role modal give in few sentances
what is domain functional level in windows server 2003?
PLZ SOMEONE TELL ME WHICH TYPE OF QUESTIONS IS ASKED IN HLL(Hindustan latex ltd.)mangmt trainee entrance exam?
A bar of steel 24 mm in diameter was subjected to a tensile load of 60 kNs and measured extension on a 20-cm gauge length was 0.009 cm and the change in diameter was 0.00375 cm. Calculate the Bulk modulus?
why this for loop doesn't work . int i; for(i=2;i=0;i--) { cout<
what is the difference between public static void main (String args[]) and static public void main(String args[]) in java?