Write a Program to find Centripetal Force by taking Radius, mass, and velocity as input and print them.
#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;
}
- C++ program which takes base and height as input and gives the area of a rectangle
- How to write a C++ program that prints the factors of the number and also prints that a number is a prime number or a composite number by taking the number from the user.
- C++ Program to Print multiplication tables of a number by taking input to the desired number.
- How to write a C++ program that prints the factors of the number and also prints that a number is a prime number or a composite number by taking the number from the user.
- C++ Program to Print multiplication tables of a number by taking input to the desired number.
You can also search this topic by:
is that program in c++
ReplyDelete