Search This Blog

Sep 23, 2013

Write a C program to compute f=(2.9678x10^-27 + 0.876x10^-38)/(7.025x10^16 - 9.75x10^12

/* Write a program to compute
f=(2.9678x10^-27 + 0.876x10^-38)/(7.025x10^16 - 9.75x10^12) */
   #include<conio.h>
   #include<math.h>
   #include<stdio.h>
   void main()
   {
   int a,b,c,d,f;
   clrscr();
   a=2.9678e-27;
   b=0.876e-38;
   c=7.025e16;
   d=9.75e12;
   f=(a+b)/(c+d);
   printf("The value of F= %d",f);
   getch();
   }

No comments:

Post a Comment