top of page
Search

C program to find sum of 2 numbers


/*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. */

}


 
 
 

Recent Posts

See All

Comments


Post: Blog2_Post

©2020 by Fundamentals of computing. Proudly created with Wix.com

bottom of page