write a C++ prgm to add two numbers?
@rsadhvika @zepp @nick67
@Yahoo! are you trying to do these programs yourself ? :-) it's much more proficient for you
I am new to C++ i want to learn all the logical thats why..
It's the same thing as the program we wrote for you before > Declare 3 variables; First for the first number, second for the second number and third for the result > Ask the user to type in the 2 numbers that he wishes to add > Run an operation to add those numbers up > Display the result; output.
And may I ask if you had learned C already? We usually learn C before C++, since both are similar, and learning C will help you a lot when learning C++.
No i have nt learned c
You should then
but that is not there in my syllabus
i in +1
I'm disappointed :(
why??
cuz C ish cool
i heard c is more complicated than C++
It's not
i think u r a master in C
Not really :P
I know the basics, not more advanced stuffs
@zepp hw to add numbers
can u show that plzz
#include <iostream> using namespace std; int main() { double a, b; cout << "First number?"; cin >> a; cout << "Second number?"; cin >> b; int const result(a + b); cout << result << endl; //Display result return 0; }
go to www.newboston.org u can learn better @Yahoo!
thrz an easy way
can u show that
Join our real-time social learning platform and learn together with your friends!