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?
4 Respostas
+ 14
you are welcome..😀
+ 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)
+ 2
yes i can told u about it...if u are interested then text again
+ 1
Thank you very much for the help! I understand it now!