C program to find sum of 2 numbers
- Shilpa H
- Jan 22, 2021
- 1 min read
/*C program to find sum of two numbers*/
#include <stdio.h>
int main(void)
{
/* Declare and initialize variables. */
double number1 = 473.91, number2 = 45.7, sum;
/* Calculate sum. */
sum = number1 + number2;
/* Print the sum. */
printf(“The sum is %f \n”, sum);
return 0; /* Exit program. */
}
Comments