SO I keep getting an error and this and cant figure out where itis, it\'s not a
ID: 3614782 • Letter: S
Question
SO I keep getting an error and this and cant figure out where itis, it's not a final product but working on it#include<iostream>
#include<cmath>
using namespace std;
int main()
{double num,rem,digits,bin,x;
cout<<"Enter a number between 100 and 500 and I will convertit to binary ";
cout<<"If you would like to exit simply enter a number lessthan zero ";
cin>>num;
{if (num<100||num>500)
cout<<"invalid entry please try again ";
if (num>=100&&num<=500)
do
{(rem=num/2);
digits++;
bin=x(pow(10.0,digits);}
while(rem>0;
if(num<0)
}
system("pause");
return 0;
Explanation / Answer
please rate - thanks this should get you started #include #include using namespace std; int main() {int num,rem,digits,bin,x; coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.