hey everyone, im new, and i have a simple question.
im writing this basic code for my class to input six different check amounts, then give the total and average. so far i have it so it works perfect with whole number. the only problem is, the numbers i need to use have decimals, and everytime i try and enter a value like 12.34, the whole things goes crazy. my code is a series of
cout << "Enter the amount of first check: " << endl;
int check1;
cin >> check1;
how can i fix this? thanks in advance
andrew