Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Basic float division in C language

Tags: division


In this C-program we will take two floats(decimal number) as input from user and print the result(division).color>

input:

Two numbers(i.e : 5.7,6.8,3.5 etc.)

output:

Division of the two numbers

CODE---->


#include
#include
color> void main()color>
{
float a,b,div;
printf("Enter two numbers:-color>");
scanf("%f%fcolor>",&a,&b);
div=a/b;
printf("The result is = %fcolor>",div);
getch();
}

Don't just read, write it, run it.....color>


This post first appeared on ProgramJoy.blogspot.com, please read the originial post: here

Share the post

Basic float division in C language

×

Subscribe to Programjoy.blogspot.com

Get updates delivered right to your inbox!

Thank you for your subscription

×