Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
C++ homework: puzzle
c++
if
puzzle
sub
sum
0 Votes
8 Answers
2nd Nov 2020, 9:45 AM
Martyna Tomaszewska
I want to get the average in double and the output must be 50.5. How do I get it and what's wrong with my code?
and
average
java
sum
3 Votes
6 Answers
8th Sep 2017, 3:04 PM
jomar ibarra
How to print numbers which is divisible by 7 from 18 to 543 and sum their output?
python3
0 Votes
1 Answer
4th Sep 2020, 8:24 PM
Mohammed Zubair
Pattern challenge : Enter 5 numbers if the largest is bigger than the sum of the two smallest number then print a triangle else
c#
c++
challenges
java
javascript
python
ruby
2 Votes
11 Answers
5th Oct 2017, 7:13 AM
Ahmed Mohammed Ahmed Khodary
Write a program to accept 20 different numbers in a SDA.Display the sum of all the numbers which are divisible by either 3 or 5
array
boards
computerapplications
icse
java
sda
0 Votes
9 Answers
8th Apr 2022, 6:45 AM
Nandini Bhardwaj
A program to compute and display the sum of all integers numbers that are divisible by 6 but not by 4 and lie between 0-100.
c++
-1 Vote
6 Answers
19th Feb 2020, 2:10 PM
Harshal Modak
I'm stuck on fill in the blanks to print the sum of two variables in Javascript.
java
operators
0 Votes
3 Answers
23rd Feb 2018, 7:09 AM
<You'reReadingThis>
Write a program that will multiply the sum of 5 and 6 by 57.3 and output the result.
python3
-1 Vote
3 Answers
29th Nov 2021, 2:02 PM
prajakta gurav
I need someone to help me calculate the sum of integers from 1 to 10 in java
java
0 Votes
2 Answers
3rd Jul 2021, 9:12 AM
Chukscomax Nnadiekwe
Write a program that finds the sum of integer number in the interval [1,25]
c++
0 Votes
2 Answers
19th Nov 2016, 9:14 AM
Israa Elwan
please help me with a program that enables one to print out all prime numbers between 10- 1000 and print their sum in java
java
2 Votes
9 Answers
15th Jun 2018, 12:01 PM
Iwuanyanwu Fredrick
double arr[]={5,2,7,8,11,9}; int n = sizeof(arr) / sizeof(arr[0]); double sum = 0; for(int i=0;i<n;i++) { sum+= arr[i]; } double avg = sum / n; cout<< "avarage ="<< avg<< endl; return 0; ) /*what does int n= sizeof(arr[]) /sizeof(arr[0]); do, can someone explain that line for me*/
arrays
c++
0 Votes
3 Answers
15th Oct 2016, 11:31 AM
Leslie Jason
we have to find the sum of the elements of the middle row of the matrix, but my code isn't printing anything
c#
java
3 Votes
4 Answers
13th Dec 2022, 8:01 AM
RISHABH BHUTANI
What is C++ program to calculate the sum of the series 1-1/2+1/3+ . . . +1/999
c++
0 Votes
3 Answers
15th Oct 2017, 5:39 PM
abhishek surin
for(int i = 1; i <= 5; i++) { System.out.print (i + " "); int k = 6; int sum =
code
1 Vote
4 Answers
10th Mar 2021, 7:10 AM
Monir Hossen
//code coach problem! "That's odd" task: We want to take a list of numbers and find the sum of all of the only even numbers.
c++
codecoach
1 Vote
7 Answers
22nd Sep 2020, 8:56 AM
Rupali Haldiya
How to find the sum of following series using "1+(1+2)+(1+2+3)+(1+2+3+4)+.......N" the value of N is entered by the user.
,addition
,for
,series
,sum
c++,
loop
loops
of
series
2 Votes
4 Answers
29th Oct 2017, 4:25 PM
S-Y 007
Where i am going wrong help
doubt
help
sum
2 Votes
2 Answers
1st Jan 2018, 5:34 PM
Dipankar Verma
How to sum up any two numbers entered by the user through a space? (Java)
java
split
1 Vote
1 Answer
23rd Apr 2018, 3:59 PM
Руслан Соколов
Sometimes someone got to know what's so simple error in my phyton project calculating the first sum of consecutive numbers in
python
1 Vote
3 Answers
10th Aug 2021, 7:21 AM
Ermias Kebede
Design a program that prompt user to enter 10 numbers and show the sum of all these numbers ( in loop case)
self-learning
0 Votes
8 Answers
9th Sep 2018, 1:13 PM
anabia
Write a program that inputs an integer and display the sum of its digits using while loop
c++
0 Votes
2 Answers
6th Feb 2017, 4:04 PM
Stuy Group Study Grop
How to write a Java program to find sum of individual digits using if else loop in java
java
0 Votes
3 Answers
16th Aug 2021, 1:07 PM
Savan Ambate
Can someone explain me what happens when we pass dictionary to sum function in python?
python
python3
0 Votes
1 Answer
7th Dec 2018, 2:58 AM
nikhil mhatre
If sum of digits of a number is divisible by 3, then the number is divisible by 3. But Why? I need the proof.
numbertheory.
programming
2 Votes
4 Answers
26th Jun 2019, 9:22 AM
Neaj Morshad Ashik
1. Program to check if a number can be displayed as a sum of two prime numbers
c
prime
sum
2 Votes
1 Answer
27th Mar 2018, 9:19 AM
Dinesh S
Fill in the blanks to enter five numbers from the user and print their sum. Store the sum in the variable named total.
blanks
enter
fill
five
from
in
numbers
the
to
user
0 Votes
4 Answers
24th Aug 2017, 10:43 AM
Abdulhamid Babar
How can i write a code to print the sum of prime numbers from 0 to 120
functions
0 Votes
2 Answers
19th Apr 2019, 10:25 AM
Muhammad Yusif Garba
Using the concept of continue. Write program that sum numbers between 10 and 100 except number 97
c#
-3 Votes
4 Answers
6th Jan 2021, 10:07 AM
Feisal Said
Write a program to print the sum of series.. 1+(1+3)+(1+3+5)......n term using for loop
loop(c++)
1 Vote
1 Answer
11th Sep 2017, 7:51 AM
rishabh Singh
Am troubled guys how can I produce,,,,my output or sum of intergers on Python
input
-1 Vote
1 Answer
9th Jun 2022, 6:45 PM
Clement Mwasiyamo
Write a program using constructor that find the sum of five digit number. (5)
c++
-3 Votes
1 Answer
8th Aug 2016, 9:51 AM
sumit behra
find the sum of middle three number of a random series in c programming
cprogramming
-1 Vote
1 Answer
19th Apr 2021, 8:14 PM
Bipin Chakraborty
Can somebody help me to understand this code. How are we able to get the sum in this one?
addition
array
numpy
0 Votes
3 Answers
18th Jul 2018, 12:53 PM
sagar
If a five digit number is input through the keyboard, write a program to calculate the sum of its digit
program
-2 Votes
5 Answers
8th May 2020, 12:16 PM
Shubham Rawat
Help Do the math python practice result 1, 3 6, 10, 15
break
int
operators
sum
0 Votes
2 Answers
8th May 2021, 2:34 PM
Lee 4 Code
ask user to enter numbers, until he enters - 1.Then displays a sum and average of all numbers entered before -1.
c
c#
1 Vote
5 Answers
19th May 2020, 9:58 PM
Alvedin
Take a number N as input and output the sum of all numbers from 1 to N (including N).
pyhton
0 Votes
2 Answers
3rd Jul 2022, 9:22 PM
VISHAL CHAUDHARY
How can i make this code to give output sum of the Nth term of the series. EXAMPLE : input:2 ,output=-1, Input:3, output=2,
c
loops
sum
-1 Vote
2 Answers
3rd Jul 2021, 6:32 AM
Siyam
Write a c++ program to compute the sum of square of odd numbers from 1 to n where n is a positive integer.
numbers
odd
of
Squares
7 Votes
2 Answers
2nd Dec 2016, 5:58 PM
Baba Yunus Abdul Yekin
Make a one line Python statement that uses both sum and range to print the sum of the numbers 1 through 10
python,
range
0 Votes
4 Answers
3rd May 2017, 9:03 PM
Tosin
How can i use divide and conquer to find the subarray with the maximum sum ?
java
recursion
subarray
1 Vote
1 Answer
8th Apr 2018, 11:38 PM
Fernanda Aguilar
#include <iostream> using namespace std; int main() { int a, b; int sum; cout << "20 \n"; cin >> a; cout << "30 \n"; cin >> b; sum = a + b; cout << "Sum is: " << sum << endl; return 0; }
c++
1 Vote
6 Answers
2nd Jul 2016, 6:44 AM
devesh dangi
for Loops for loops allow you to easily iterate through lists. Given a list of numbers, calculate their sum using a for loop.
#brazil
0 Votes
4 Answers
4th Feb 2022, 6:16 PM
Vitoria Scheuermann
SQL: SUM, AVG, but what about Division?
avg
functions
sql
sum
6 Votes
2 Answers
19th Jun 2017, 10:18 PM
Limitless
Write a program to compute the sum of the first n terms of the following series S=1+2+3-4+5.......
program
0 Votes
2 Answers
5th Mar 2019, 1:54 PM
Ratish Behera
Write and run a program that reads a six digit integer and prints the sum of its six digits?
c++
0 Votes
3 Answers
3rd Dec 2017, 9:11 AM
alikhan124
How to write a program to display the sum of two numbers without using arithmetic operator
c++
loops
1 Vote
2 Answers
4th Jan 2017, 2:15 AM
Chethan Shenoy
It is assumed that the void function does not return a value, but in the following code, the sum is returned
c
c#
c++
0 Votes
4 Answers
2nd Jul 2022, 1:02 PM
RAMADAN : رمضان
Why does sum hasn't been initialized to 0 during every time when it calling itself,by the way, what does static means in here?
c#
2 Votes
4 Answers
10th Feb 2021, 8:06 PM
Yasswecancn
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
17
18
19
...
24
Next >
Hot today
Guys help please
1 Votes
Python question
2 Votes
Python
1 Votes
Are websites hackable?
1 Votes
C# and sql
1 Votes
Void functional void with bool function
0 Votes
What course to take for AI?
0 Votes
TICTACTOE
0 Votes
Error
0 Votes
What's an unsigned int?
0 Votes