Program to understand the floating point arithmetic operation | Floating Point Representation

Spread the love

Program :

  1. /*Program to understand the floating point arithmetic operation */
  2. #include<stdio.h>
  3. int main(void)
  4. {
  5.         float a=12.4,b=3.8;
  6.         printf(“Sum=%.2fn,a+b);
  7.         printf(“Difference=%.2fn,ab);
  8.         printf(“Product=%.2fn,a*b);
  9.         printf(“a/b=%.2fn,a/b);
  10.         return 0;
  11. }
Also Read :

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply