write a c program to enter two number add
Attachments:
Answers
Answered by
0
the answer is 2/4 because you have to add
Answered by
0
Answer:
Write a c program to enter two numbers and add them.
Step-by-step explanation:
#include <stdio.h>
int main()
{
int FirstNumber, SecondNumber, sumOfTwoNumbers;
printf("Enter two integers: ");
// Two integers entered by user is stored using scanf() function
scanf("%d %d", &FirstNumber, &SecondNumber);
// sum of two numbers in stored in variable sumOfTwoNumbers
sumOfTwoNumbers = FIrstNumber + SecondNumber;
// Displays sum
printf("%d + %d = %d", FirstNumber, SecondNumber, sumOfTwoNumbers);
return 0;
}
Output :-
Enter two integers: 0.5
0.5
0.5 + 0.5 = 1
Similar questions
English,
8 months ago