I'M having problems with code cant get it to work..

I'm trying to read in 6 different weights representing the weights in kg of 6 different bags of flour from the keyboard.calculate the total...