In this program user inputs the mass of two bodies and the distance between them and calculate and output the Force of attraction between two masses according to Newton's law of gravitation.
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float f,m1,m2,r;
cout<<"Enter the value of two masses in Kg : ";
cin>>m1>>m2;
cout<<"Enter the distance between two masses in meters : ";
cin>>r;
f=(6.67*pow(10.0,-11.0)*m1*m2)/(r*r);
cout<<"The force of attraction between two masses = "<<f<<" Newton ";
getch();
}
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float f,m1,m2,r;
cout<<"Enter the value of two masses in Kg : ";
cin>>m1>>m2;
cout<<"Enter the distance between two masses in meters : ";
cin>>r;
f=(6.67*pow(10.0,-11.0)*m1*m2)/(r*r);
cout<<"The force of attraction between two masses = "<<f<<" Newton ";
getch();
}
f=(6.67*pow(10.0,-11.0)*m1*m2)/(r*r);
ReplyDeleteI don't understand this part can u plz explain....??
f=(6.67*pow(10.0,-11.0)*m1*m2)/(r*r);
ReplyDeleteI don't understand this part p/z explain??
"f=(6.67*pow(10.0,-11.0)*m1*m2)/(r*r)"
ReplyDeletecan you explain this above step ??
Reading something so delightful has a recuperating power for the spirit.
ReplyDeleteCitywide Law Group
Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks Tulsa Private Investigations
ReplyDeleteOn this page, you'll see my profile, please read this information. https://www.paulmankin.com/
ReplyDeleteCrack the BFUHS BSc Nursing entrance exam with Mantram Nursing Academy. We provide structured classes, exam-oriented study materials, and practice tests to enhance your preparation. Our faculty’s guidance and strategic approach ensure a high success rate among students aiming for BFUHS nursing admissions.
ReplyDeleteBest BFUHS BSc Nursing Entrance Exam Coaching
Lawyer attorneys handle sensitive matters with confidentiality and respect. civil rights attorney lawyer
ReplyDeleteGreat team for all family law needs. military divorce attorney
ReplyDeleteReliable criminal law representation criminal defense lawyers
ReplyDeleteDivorce lawyers guided me through every step. go to this site
ReplyDeleteA multi account browser is designed to keep different online identities separate while making account switching effortless. NOID provides isolated browser profiles with dedicated cookies, storage, and customizable settings for each account. Built-in privacy features, fingerprint protection, and proxy compatibility help users work securely across multiple platforms. From digital marketers and freelancers to agencies and businesses, NOID delivers an efficient browsing environment that supports productivity while reducing login conflicts and improving overall account management.
ReplyDeleteDaftar Parlay Bola Online kini lebih mudah dan aman melalui 7meter. Platform ini menyediakan proses pendaftaran cepat, odds kompetitif, serta akses stabil untuk menikmati taruhan parlay bola. 7METER menjadi pilihan utama bagi pemain yang ingin bergabung dan bermain dengan nyaman. Daftar Parlay Bola Online
ReplyDeleteBola88 adalah Bola88 Resmi yang menyediakan Bola88 Login cepat dan aman untuk Taruhan Bola88. Pemain dapat menikmati odds kompetitif, pasaran lengkap, serta akses stabil setiap saat. BOLA88 menjadi pilihan utama bagi bettor yang menginginkan pengalaman taruhan bola berkualitas tinggi. Taruhan Bola88
ReplyDeleteNaga303 adalah platform terpercaya yang menyediakan akses cepat dan stabil untuk berbagai permainan online. Dengan layanan aman serta fitur lengkap, pemain dapat menikmati pengalaman bermain yang nyaman dan menguntungkan. NAGA303 menjadi pilihan utama bagi yang mencari kualitas terbaik. NAGA303
ReplyDelete