cout<<"Enter value of a and b:n";
This program is successfully executed in the c++ borand software. If any error is coming, then you are typing the program incorrectly. Simply copy paste the program in a notepad file and save it as you save in borland. Then open the notepad file using the software, now you can see the whole code already written in the window.