answersLogoWhite

0


Best Answer

int i, sum = 0;

for (i=0; i<20; i+=2) sum+=i;

User Avatar

Wiki User

โˆ™ 2009-12-05 21:20:13
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar
Study guides
๐Ÿ““
See all Study Guides
โœ๏ธ
Create a Study Guide

Add your answer:

Earn +20 pts
Q: Write a program in c plus plus for finding the sum of first 10 even numbers?
Write your answer...
Submit
Related questions

Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


How do you write a program to find out the square and cube of first ten natural numbers in gw basic?

First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.


Write a program to compute the sum of first ten integer numbers in PHP?

$n = 10*(1+10)/2;


How do you write socket program in c?

For first find an example program.


Write a program to print first 100 alternative prime numbers?

This would require some computer knowledge. It can make it easier to find out the prime numbers without figuring it out in your head.


Write a program to calculate first?

int first= 1;


How do you write numbers from first to fifty first?

with a pencil


What is the first step in finding LCM of tow or more numbers?

Factor them.


Write a javascript program to add first 15 even numbers?

man mnn g gt grand theft auto or grand theft walrus


What is the second step of finding LCM?

If the first step is writing down the numbers, the second step is finding their prime factorizations.


What if two numbers are equal in finding greatest of three numbers?

Then you have a tie, for either first place or last place.


How. to. write an. algorthim. to find the. sum of. first. 15 natural. numbers?

Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers


Write a program to generate the first 50 perfect numbers?

I don't believe that 50 perfect numbers have ever been found, last time I checked there were only about 47 known perfect numbers. It would also require an extremely powerful computer.


Program in 'c' to find the LCM of any given five numbers?

Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.


Was hello world the content of the first computer program?

No, "Hello world" is typically the first program assignment in introductory computer programming classes as it is trivial to write and almost useless.


How do you write a c program that prints a box an oval an arrow and a diamond?

You first learn how to program in C.


How can program for c language?

first think of the logic and then write the statements


Write an algorithm to print all even numbers in descending order and draw the flowchart?

write an algorithm to print first N even numbers


Write these numbers in order of size smallest first 2177 914 941 944 909?

write these numbers in order of size smallest first 2177 914 941 944 909


Will this site help someone attempting mathematically to write a word problem?

Someone that is attempting to write a word problem, needs to write it out in numbers first. From there, figure out what kind of products you will use, and write out sentences with numbers.


How do you write first you have to times all the consecutive numbers and your answer will be the highest factor of your answer better?

First, multiply the consecutive numbers. Your total will be the highest factor.


How do you write 1153 million in numbers?

first of all, this number is actually said 1 billion, 153 million. And you would write it in numbers like this:1,153,000,000.


How do you write binary numbers as a decimal?

Kick yourself in the bum first


How do you write a c program to prints name?

Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.