Pages

Adsense responsive

Tuesday, 29 January 2013

C PROGRAM: TO ADD TWO FLOATING POINT NUMBERS

CODING:
#include<stdio.h>
#include<conio.h>
void main( )
{
float num1,num2,sum;
clrscr( );
printf("enter first number ");
scanf("%f",&num1);
printf("enter second number ");
scanf("%f",&num2);
sum=num1+num2;
printf("sum of two numbers= %f",sum);
getch( );
}


CODING
OUTPUT
NOTE: You can directly run program by pressing CTRL+F9.

For any query or suggestion please comment below...

No comments:

Post a Comment