0

int main() { int a, b; cout << "Enter a number \n"; cin >> a; cout << "Enter another number \n"; cin >> b;

I don't clearly understand what we are doing here? I have problem when i try to run it. Can anyone please explain?

17th Feb 2018, 3:05 PM
Ayesha Tasnim
Ayesha Tasnim - avatar
4 odpowiedzi
+ 14
you are welcome..😀
19th Feb 2018, 3:23 PM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
+ 8
hi @Ayesha here the program asks the user to insert two integer values and save them in the two integer variables 'a' and 'b'. using this application you must insert the two integers in separate lines when you run the program and prompt you a mesage to insert tge required values example: 35 42 by this way : variable 'a' will asigned with 35(that means, a = 35) variable 'b' will asigned with 42(that means, b = 42)
17th Feb 2018, 4:34 PM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
+ 2
yes i can told u about it...if u are interested then text again
17th Feb 2018, 3:49 PM
vedansh
vedansh  - avatar
+ 1
Thank you very much for the help! I understand it now!
19th Feb 2018, 3:22 PM
Ayesha Tasnim
Ayesha Tasnim - avatar