Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Data File StructureRSS Feeds

Program to read two floating point no from key board and perform arithmetic operations

Posted By: Raymond Fischer     Category: C Programming     Views: 4299

Write a program to read two floating point no from key board and perform arithmetic operations.

Code for Program to read two floating point no from key board and perform arithmetic operations in C Programming

#include <stdio.h>
#include <conio.h>
void main()
{
float x,y;
float add,mul,divi,sub;
printf("enter any two float no : ");
scanf("%f%f",&x,&y);
add =  x + y;
sub =  x - y;
mul =  x * y;
divi = x / y;
printf("addition :%f\nsubtraction :%f\n",add,sub);
printf("multiplication :%f\ndivdsion :%f",mul,divi);
getch();
}
  
Share: 



Raymond Fischer
Raymond Fischer author of Program to read two floating point no from key board and perform arithmetic operations is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!