Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
wt is output if a=2.0,b=2.5 #include <iostream> using namespace std; int main() { int a, b; int sum; cout << "Enter a number \n"; cin >> a; cout << "Enter another number \n"; cin >> b; sum = a + b; cout << "Sum is: " << sum << endl; return 0; }
c++
variables
0 Votes
21 Answers
10th Jul 2016, 7:37 AM
Manikumar Gouni
I entered only 1 number instead of 5 and got output as 5*number.. instead I should have got only the number . please clarify
c++
loops
0 Votes
5 Answers
1st Aug 2016, 2:14 PM
RB Vijey Shankar
You need to make a program for a leaderboard. The program needs to output the numbers 1 to 9, each on a separate line,
\n
code
in
phython
-1 Vote
3 Answers
24th Jun 2021, 5:38 PM
Lavesh Lingayat
Double sum problem in output, C++, HELP
c++
console
double
input
output
4 Votes
2 Answers
27th Mar 2017, 6:40 AM
Elena
How does this work?
java
java-output
output
reference-types
value-types
2 Votes
1 Answer
26th Mar 2019, 8:33 AM
Purvesh Pawar
Can someone help me with this code for java
basic
java
output
variables
with
-1 Vote
5 Answers
8th Mar 2019, 2:48 PM
Jordan Sims
Want replications needed to be picked up.
csv
new
output
python
sheet
0 Votes
5 Answers
16th Feb 2017, 7:38 AM
Mohd Qasim
How to read a file line by line? The output should not be like word by word. Any idea?
files
input
java
1 Vote
2 Answers
15th Apr 2017, 2:32 PM
Deep chand
I have this error with my visual studio ... I can't see the output ... the console screen close quickly ... can anyone help me ?
c++
console
studio
visual
1 Vote
3 Answers
6th Jun 2018, 9:08 PM
Maryam Mostafa
This is a program for bubble sorting in java ,Why output is showing as compilation error?
bubblesorting
java
0 Votes
1 Answer
23rd Jul 2019, 5:45 AM
Sudhir Ghagare
What code should i type?? Plz give ans .that it very important for me.input and output is give in question in description box..
c
scripting-languages
0 Votes
1 Answer
6th Aug 2019, 6:27 PM
Bhargav Bhatiya
How do I make my buttons display in my output when I click on the button. Like my buttons value displaying using JavaScript.
javascript
2 Votes
1 Answer
4th Sep 2020, 8:40 PM
Timmy Afolami
I have an image source. I want to write an html code so that when the code is Run the output should be image
html
0 Votes
4 Answers
6th Nov 2018, 2:19 PM
Avadesh Pandey
Can we use it like this? Why or why not?
access-modifiers
basics
corejava
java
main
output
static
2 Votes
3 Answers
16th Nov 2019, 4:28 AM
palak pandey
The program must accept N integers as input. The program must print product of every three integers as the output
c
program
0 Votes
1 Answer
29th Jun 2020, 5:19 AM
Surya
what is output of the code? var sum=o for(i=4;<8;i++){ if (i ==6){ continue } sum+=1 } document write (sum;) ...............?
break
javascript
0 Votes
3 Answers
27th Oct 2016, 9:31 AM
Md.mahadi Hasen
This program is based on C++ and the output is [ 0 1 0] how to Z's value 0 ?
c++
3 Votes
1 Answer
10th Sep 2017, 6:49 PM
Anuj kumar
in the lesson, a question have been asked about the output of int("3"+"4") and the answer is 34.but it has no output..
int
python
type-conversion
1 Vote
2 Answers
26th Sep 2018, 6:40 PM
Mahian Ahmed
Can you help me? I have problem with the output part, anytime i wanna see a code,it's just blank page appear...
code
developer
sololearn
2 Votes
2 Answers
9th Sep 2017, 2:54 PM
Muh Yassir Li
Help inheritance c#
are
class
inheritance
input
method
object
output
property
to
you
0 Votes
4 Answers
21st Jan 2021, 12:35 PM
Abdullah Ghanim
When i tried it n pycharm(pc) shows output perfectly, but when i try n playground(solo learn) it shows EOF in reading line. Y?
python
python3
pythondoubt
0 Votes
3 Answers
18th Jun 2019, 7:24 AM
Bharanishraj
Write a program-timer, that will take the count of seconds as input and output to the console all the seconds until timer stops?
javascript
node.js
website
1 Vote
2 Answers
27th Jan 2022, 5:50 PM
Atahar Shihab Dipu
Answer is 55 plese explain flow in detail
c
code
flow
output
0 Votes
3 Answers
5th Apr 2017, 2:48 PM
Aniket Patil
Why does this code not work? Help! How a * (b, c, d) = a??
challenge
help
javascript
output
1 Vote
1 Answer
7th Jun 2018, 12:14 PM
Andre Daniel
Why does my program show no output?
help
java
no
output
0 Votes
1 Answer
12th Aug 2020, 8:08 AM
Kunal Kashyap
Which choice is the output value of the following code: var a = 0 let b = ++a let c = a++ print("\(a) \(b) \(c)")
operators
swift
2 Votes
2 Answers
6th Sep 2016, 7:34 AM
Fetsi Hlase
I need help to create a program where he first ask you "What's your name?: " and then it gives you as output "Hello (name)"
input
java
0 Votes
5 Answers
8th Jan 2018, 5:57 PM
Alessandro
Can someone explain me the solution of this question?
code
numeric-operations
output
python
variables
0 Votes
3 Answers
14th May 2020, 5:28 AM
Uditya Kumar
What change should I make in this python code so that I'll be able to output all Even numbers less than 1000
python
python3
0 Votes
2 Answers
26th Sep 2021, 4:14 AM
bernard
Even after typecasting at line 18, why does it keep printing 0 as output for any given input ?
c
math.h
0 Votes
1 Answer
19th May 2018, 11:11 AM
Md Arshad Ali
Find the largest rectangle in the histogram. If the input is {6,4,5,1,4,5,6} and the output is 12. How to proceed
c
0 Votes
1 Answer
27th Mar 2018, 2:35 AM
Ananthavalli A
how to count character in the row and column that doesn't have 'a' character
array
c
c++
count
input
output
-1 Vote
6 Answers
19th Oct 2018, 3:38 PM
Yoaraci
what is this number for ?
c
char
gets
input
output
programming
1 Vote
4 Answers
16th Oct 2018, 7:06 PM
moatassim yaboub
initially its showing output but on search giving this error-"Unhandled Rejection (TypeError): Cannot read property 'lon' of und
api
json
react
reactjs
0 Votes
1 Answer
23rd Jun 2021, 5:04 PM
dheeraj gupta
what will be output is function with same parameters and same return type is used in derived class
cpp
inheritance
2 Votes
1 Answer
4th Aug 2017, 4:01 PM
Siddharth K
So I'm trying to write this code which output 'accept' for some specific names the user inputs but it ain't working
python
0 Votes
2 Answers
25th Aug 2019, 9:54 AM
Onimisi
why this output only comes 3 and why not output 123? #include<iostream> using namespace std; class A{ public: virtual void f(){cout<<1;} }; class B:public A{ public: void f(){cout<<2;} }; class C:public B{ public: void f(){cout<<3;} }; int main() { B *p=new C; p->f(); }
c++
0 Votes
3 Answers
24th Aug 2016, 2:21 PM
Lekhraj Singh
How to fix this , I want the Result to be lowest to highest but the output is the opposite? And there's a error.
c
0 Votes
3 Answers
3rd Nov 2020, 6:23 AM
Constantine Xsavior
What is the output of this code? num = 7 if num > 3: print("3") if num < 5: print("5") if num ==7: p
help
me
0 Votes
1 Answer
24th Sep 2020, 6:20 PM
Bhavesh Nandave
I have an image source. I want to write an html code so that when the code is Run the output should be image
html
0 Votes
4 Answers
6th Nov 2018, 2:19 PM
Avadesh Pandey
I created a simply add program. And i run it. But in output i cannot typing a number. Why? It run in my python computer.
python
0 Votes
3 Answers
2nd May 2020, 9:26 PM
Adnin Qasifa
Why this codes outputs false?
coders
java
Learners
output
programmers
self-learning
sololearn
4 Votes
6 Answers
9th Jul 2017, 7:25 PM
Jatin Agarwal
What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else {
java
0 Votes
5 Answers
27th Jun 2017, 2:43 PM
Walter Mugo
Why is this code giving the output of 'I am' even though I am giving the input of either John or Lara?
0 Votes
2 Answers
20th Oct 2019, 12:28 PM
Syeda Suraiya Binta Imam
for i in range(5): print("hello!"), output is that 5 times hello is printed, but what "i" is doing in the whole code??
loops
0 Votes
3 Answers
9th Jul 2019, 7:59 PM
Garima Agrawal
Write a c program to output even numbers between 1 and 50 using do ..while loop?
c
-4 Votes
2 Answers
11th Mar 2018, 3:01 PM
Sheldon Anyenda
Why is my while statement at the end repeating the text "Huh?" as the output infinitely?
infiniteloop
infinity
python
python3
whilestatement
1 Vote
1 Answer
15th Aug 2017, 9:23 PM
John
an output showing the value of a pointer contained a digit x. Why is it so?
2nd
exercise
pointer
0 Votes
1 Answer
16th Mar 2017, 11:15 AM
Ankit Prasad Patel
Write a program using nested loop to give output as a given below through C++. Course
control
flow
of
0 Votes
1 Answer
9th Sep 2017, 1:59 AM
Raj Kumar
Y the output will get the (Top% ) i am specified the 3 % symblos ..
c
0 Votes
1 Answer
9th Aug 2019, 5:33 PM
LOKESHA E J
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
143
144
145
...
157
Next >
Hot today
Need some help
2 Votes
What's wrong with to_string
2 Votes
Optimizing Web Application Performance with Microservices
4 Votes
<div></div>
1 Votes
Vim😪😪
1 Votes
Coding
1 Votes
Need help
1 Votes
Code challenge ratings
1 Votes
Sololearn
2 Votes
HOW CAN I MAKE IT WHEN I INPUT 11.6 the output is 11 hours 60 minutes and 0 degrees
1 Votes