Write a c program to add two number
Answers
Answered by
2
Hello !!
For answer this question, we can called it's numbers by numCCC1 and numCCC2, the final result you can called as answer. See the resolution below.
*********************
#include <stdio.h>
#include <conio.h>
/*The above codes are libraries*/
int main(void)
/*code start*/
{
float numCCC1, numCCC2, sum;
/*variables*/
printf("Put the first number:");
/*numCCC1*/
scanf("%f",&numCCC1);
printf("Put the second number:");
/*numCCC2*/
scanf("%f",&numCCC2);
sum = numCCC1 + numCCC2;
/*it is the formula*/
printf("Answer:%0.4f",sum);
/*Here you see the answer (final result)*/
return(0);
}
***********************
I hope I have collaborated !
Similar questions
Math,
7 months ago
Geography,
7 months ago
English,
1 year ago
India Languages,
1 year ago
Physics,
1 year ago