219,505 views
19 votes
19 votes
Write a code to add any two number together

User ArcticMediaRyan
by
2.7k points

1 Answer

23 votes
23 votes

Answer:

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.

User Enkara
by
3.2k points