Code:
[code]#include <stdio.h>
int main(int argc, const char * argv) {
//Declare two variables type float and assign decimal point number.
float variable_1 = 3.14;
float variable_2 = 42.0;
//Declare another variable of type double and assign the sum of two floats
double sum = variable_1 + variable_2;
// Print the result
printf("The sum of variable_1 and variable_2 is %f.\n",sum);
return 0;
}[/code]
Console Output: