Write a C program to division with float values and output it.
Menu
Turn Mobile View Off
by Dinesh Thakur

 

 

#include<stdio.h>

#include<conio.h>
void main()
{
float a = 10.0f;
float b = 4.0f;
float result = 0.0f;
result = a/b;
printf("result is %f. ",result);
getch();
}
 
OUTPUT:
result is 2.500000.
Dinesh Thakur is a Technology Columinist and founder of Computer Notes and Technology Motivation. Turn Mobile View Off