Computer Science, asked by AnshumanPani2022, 30 days ago

Write a basic programme to add two numbers

Answers

Answered by ItzAnonymousgirl
1

Answer:

printf("Enter two integers: "); scanf("%d %d", &number1, &number2); Then, these two numbers are added using the + operator, and the result is stored in the sum variable. Finally, the printf() function is used to display the sum of numbers. printf("%d + %d = %d", number1, number2, sum);

Explanation:

hope it helps u

Answered by XxProperPatollaxX
0

Answer:

If you are asked to work out the product of two or more numbers, then you need to multiply the numbers together. If you are asked to find the sum of two or more numbers, then you need to add the numbers together.

Explanation:

Hope it helps.

Similar questions