+ 1

Why this doesnt work?

I really dont understand why it didnt work?someone who knows the ansswer help me https://code.sololearn.com/WPnsfbcG6Bhr/?ref=app

11th Nov 2019, 8:04 AM
durian
durian - avatar
1 ответ
+ 3
You are calling the constructor first and then you are taking values from user. When you call constructor initially, it is passing values in a and b which at that moment is undefined. Therefore, the values in output is undefined. Take the values from user before calling constructor, your program will run fine then.
11th Nov 2019, 8:31 AM
Chetali Shah
Chetali Shah - avatar
Актуальное сегодня
.
1 Votes
What?
0 Votes
HTML
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes
Create Agent
0 Votes