D
deanfamily11
When I run the following code through my compiler, I get C2065 and C2145
errors. Can someone help?
#include <iostream>
using namespace std;
int main ()
{
//declare variables
double dblin;
int intout;
//requesting a number
cout << "Enter a decimal number to round: ";
//user input
cin >> dblin;
cout << endl;
//round the number
intout = dblin;
//output the rounded number
cout << "The number rounded is ";
cout << intout;
cout << endl;
round 0;
}
errors. Can someone help?
#include <iostream>
using namespace std;
int main ()
{
//declare variables
double dblin;
int intout;
//requesting a number
cout << "Enter a decimal number to round: ";
//user input
cin >> dblin;
cout << endl;
//round the number
intout = dblin;
//output the rounded number
cout << "The number rounded is ";
cout << intout;
cout << endl;
round 0;
}