{"id":5289,"date":"2022-01-21T23:00:00","date_gmt":"2022-01-21T17:30:00","guid":{"rendered":"https:\/\/www.codingbroz.com\/?p=5289"},"modified":"2022-01-21T19:49:05","modified_gmt":"2022-01-21T14:19:05","slug":"c-program-to-calculate-potential-energy","status":"publish","type":"post","link":"https:\/\/www.codingbroz.com\/c-program-to-calculate-potential-energy\/","title":{"rendered":"C Program to Calculate Potential Energy"},"content":{"rendered":"\n

Hello coders, today we will learn how to calculate the potential energy of an object using C<\/strong> Programming language.<\/p>\n\n\n\n

Potential energy <\/strong>is the energy held by an object because of its position relative to other objects, stresses within itself, its electric charge or other factors.<\/p>\n\n\n\n

The formula for potential energy depends on the force acting on the two objects.<\/p>\n\n\n\n

Potential Energy or (P.E.) = m x g x\u00a0 h<\/strong> where,<\/p>\n\n\n\n