Wednesday, October 2, 2013

Program to find out the Torque developed in a shaft

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float p,n,t;
cout<<Enter the Power transmitting by the shaft in kilowatt : ";
cin>>p;
cout<<Enter the speed of the shaft in revolutions per minute : ";
cin>>n;
t=(p*60)/(2*3.14*n);
cout<<"The Torque developed in shaft is : "<<t<<"\t"<<"KNm";
getch();
}


1 comment: