Advertisement

C Programming

C programming
Writing equation:

#include<conio.h>
#include<stdio.h>
   void main()

    {   clrscr();
                int a,b,g,ans;
                printf("enter number to calculate Torque(enter by serial>am,bm,g):");
                scanf("%d %d %d",&a,&b,&g);
                ans=((2*a*b*g)/(a+b));
                printf("output is=%d",ans);
                getch();

                                                                }

No comments:

Post a Comment

Please comment bellow. Share your knowledge