Math, asked by rahul702, 1 year ago

write a c program to enter two number add

Attachments:

Answers

Answered by KINGPUNISHER
0

the answer is 2/4 because you have to add



Answered by sushiladevi4418
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