Computer Science, asked by sawarnsinghsingh62, 1 month ago

write a program to add two numbers?​

Answers

Answered by Anonymous
2

\textbf{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);

Similar questions