- 2
I can’t figure out this problem Heeeelp
Write a program that takes two numbers as input, assigns those values to the provided a and b variables, then outputs their sum Use cin for user output
8 odpowiedzi
+ 6
Nobody ..
i think it should be c++ as mentioned by you.
if you have learned the all exercises and answered all questions from the tutorial so far, you should be able to solve this task. i have taken a short view to the lesson 5.1 and 6.1, and have found all the required information that we need to solve the task successfully. there is a code shown that is very similar to what is asked in the exercise.
may be you are going back some steps, read and practice, then try it again.
happy coding and good duccess!
+ 3
And your try?
+ 2
https://www.sololearn.com/Course/CPlusPlus/?ref=app
This is C++ course, complete it first
+ 1
Oh it's easy why don't you start with the C course provided by sololearn.
+ 1
First you have to focus on basic of the programming language
0
Please take a look at the forum rules:
https://www.sololearn.com/Content-Creation-Guidelines/
https://www.sololearn.com/Discuss/1316935/?ref=app
0
Ok then what is it
- 1
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"Enter the Value of a : ";
cin>>a;
cout<<"Enter the Value of b : ";
cin>>b;
cout<< a << " + " << b << " = "<< a+b;
return 0;
}