how do i get a flat hard tummy without going to the gym?

Im 18 this year..my tummy is not so flat…i really wanna get a flat tummy and i’d like to start seeing some packs…i can’t go to the gym…so what exercises can i do at home for a flat tummy??and how long m i supposed to work out per day?