The trouble is you think you have time. Your success depends on how you utilize your time.

C++ program to find Centripetal force by taking mass velocity and radius as an input and print it.

Write a C++ program to calculate Centripetal force by taking input of mass , velocity and radius and print it.


#include<iostream>
using namespace std;
int main()
{ cout<<"www.moznum.blogspot.com"<<endl<<endl;


float mass,velocity,radius,f,force;
cout << "Enter the value of mass: ";
cin >> mass;
cout << "Enter the value of velocity: ";
cin >> velocity;
cout << "Enter the value of radius: ";
cin >> radius;
f = mass*velocity*velocity;
force = f/radius;
cout<<endl<< "Centripetal force for your values are: " << force <<endl;
return 0;                                                      
}

No comments:

Post a Comment