The sum of the first 15 positive even numbers is 240. (Simply square 15, then add 15 to the result: 15 x 15 = 225. 225 + 15 = 240).
The sum of the first 5 numbers is 15. 1+2+3+4+5=15
#include<stdio.h> #include<conio.h> void main() { int c=1,i; unsigned int s=0; clrscr(); for(i=1,(i<=15;i++)) { if(i%2==0) { s=s+i; c=c+i; } } printf("/n sum of the first 15 even numbers is%d",s); printf("/n square of the sum is: %d",(s*s)); getch(); }
Must be the 2 odd numbers, 9 & 15 (P = 135, S = 24)
The two numbers are 6 and 9
The sum of the first 15 positive even numbers is 240. (Simply square 15, then add 15 to the result: 15 x 15 = 225. 225 + 15 = 240).
the sum of the first 15 prime numbers is 328 .
The sum of the first 15 odd numbers is 225.
The sum of the first 5 numbers is 15. 1+2+3+4+5=15
The sum of the first five whole numbers is 10.
The sum of the smallest 15 positive integers is 120. The sum of the smallest 15 negative integers is -120.
#include<stdio.h> #include<conio.h> void main() { int c=1,i; unsigned int s=0; clrscr(); for(i=1,(i<=15;i++)) { if(i%2==0) { s=s+i; c=c+i; } } printf("/n sum of the first 15 even numbers is%d",s); printf("/n square of the sum is: %d",(s*s)); getch(); }
15
(1+15)*15/2first plus last times number of numbers then divide by two
Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers
1+1+1+1+1+=5 * * * * * The question did not ask for the sum of the first counting number five times! The sum of the first 5 counting numbers is 1+2+3+4+5 = 15. Such sums are known as triangular numbers.
The sum of six odd numbers is never fifteen since 15 is odd and the sum of six even numbers is always even. However if "make" allows products: 1* 1 * 1 * 1 * 3* 5 = 15 ( I used * to mean multiply.)