google407ec42f1ae5ff0e.html
top of page

Write a Program to understand the use of floating point data type and arithmetic operation.

Write a Program to understand the use of floating point data type and arithmetic operation.

or

using Float Variable find the sum,sub,mul,div of two number


#include<stdio.h>

void main()

{

float a=50.25,b=25.50;

void main()

printf("Sum of two number is =%.2f\n",a+b);

printf("Sub of Two number is =%.2f\n",a-b);

printf("Multiply of Two number is =%.2f\n",a*b);

printf("Divide of two number is =%.2f\n",a/b);

getch();

}


or


#include<stdio.h>

void main()

{

float a=50.25,b=25.50,sum,sub,mul,div;

void main()

printf("Sum of two number is =%.2f\n",sum);

printf("Sub of Two number is =%.2f\n",sub);

printf("Multiply of Two number is =%.2f\n",mul);

printf("Divide of two number is =%.2f\n",div);

getch();

}


Recent Posts

See All

コメント


Facilities-:
One to one  online  / Offline Class
Individual training 
Corporate Training
E-Certificate for each course
Life time video accessible
E-Books

About us-:
Fin Computer Class
Sector 107, Noida  U.P.
M-: 9871715299
E: fincomputerclass@gmail.com
W-: www.computerclass.co.in
W-: www.it402.com
Y-:www.youtube.com/yka39

All Rights Reserved @ fin computer class     Design & Developed by Yatendra Kumar Awana

bottom of page