basic addition of two decimal numbers
#include <stdlib.h>
int main()
{
double num1, num2;
printf("enter numer:");
scanf("%lf", &num1);
printf("enter numer:");
scanf("%lf", &num2);
printf("sum is %f", num1 + num2);
return 0;
}
Comments
Post a Comment