Computer Science, asked by dhanyask, 1 month ago

how to add two numbers which can be intergers or floating point in c ?​

Answers

Answered by stuprajin6202
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);

Similar questions