QUESTION

Text
Image

I am using Visual Studio 2019. I created another source file in Visual Studio 2019 and cannot compile it. Is it because my program is wrong or am I not debugging it properly?

How do you debug with more than one program running in Visual Studion?

\#include 〈iostream〉 using namespace std; Fint main( ) \{ int pages; cout «"Enter the number of pages to be faxed: " « end1; cin $\gg$ pages; double service $=\mathbf{3 . 0 0}$; double ans; if (pages $<=10)\{$ ans = pages * $(0.20) ; \mathrm{I}$ \} else if (pages >10) \{ ans $=(0.20) * 10 ;$ int $p=($ pages -10$) ;$ double num $=p * 0.10$; ans $=$ ans + num; 子 cout $\ll$ "Total Cost of sending this international fax is: $\$ " \ll$ (ans + service) $\ll$ endl system("pause"); return 0;

Public Answer

OQ39JE The First Answerer