i cant get the sum of this C++
#include<iostream> #include<stdio.h> using namespace std; int main() { int student ; int workbook = 3; int pencil = 1.5; int eraser = 0.5; double sum ; cout << "enter the number of students: "; cin >> student ; workbook = student * 5 ; cout << "total workbooks: " <<workbook<<""<<endl; pencil = student * 4 ; cout << "total pencils: " <<pencil<<""<<endl; eraser = student * 3 ; cout << "total erasers: " <<eraser<<""<<endl; sum = workbook + pencil + eraser ; cout << "the total cost will be: " <<sum<<""<<endl; return 0 ; } so in the following code as you can see in the int = workbooks = 3 ; < the 3 is supposed to be the euros , as in the pencils = 1.5 and erasers 0.5... in the sum it wont calculate the values and justs prints out the sum of all the equipment and not the price of each one as well ... any thoughts on this ? thank you, Spireta