We consider Rc circuit for chargin capacitor by using stewise potential. The energy dissipation and the energy stored in the capacitor are derived and analyized for any number of syeps. Experimental verification of the results are peroformed. Our theoretical and experimental results are in good agreemen.