I don't really see the reason why discount shouldn't show up. Even if there is no discount, it should at least show 0 on the screen. If you mean that discount shouldn't be 0,
This is the only part where I really see you are changing discount. If there are less than 20 lama live at the house, discount is 0, of course.
I also see some problem in your code.
1 2 3 4 5 6
#include <iostream.h>
#include <iomanip.h>
// There is no such header file "iostream.h", "iomanip.h"
// I think what you want are "iostream", "iomanip"
#include <iostream>
#include <iomanip>
1 2 3 4
main()
// main is function. Lines like above shouldn't be allowed... proper way to write main is:
int main( void )
// or int main( int argc, char** argv )
1 2
// cout, cin is in namespace "std". The proper way of using it should be
std::cout, std::cin.