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( );
}
NOTE: You can directly run program by pressing CTRL+F9.
#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 |
For any query or suggestion please comment below...
No comments:
Post a Comment