some one help write a program to calculate the sum of the first 20 integers

Recommended Answers

All 4 Replies

some one help write a program to calculate the sum of the first 20 integers

We can't/shouldn't write it for you...but we can provide pointers if you show some effort. So what do you have so far...

Use a for loop, it's quite simple really.

some one help write a program to calculate the sum of the first 20 integers

Can you calculate sum of 20 integers manually ? if no first , you may first try that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.