C program to add two numbers?
Answers
Answered by
2
Answer:
hey mate ✌️ ✌️✌️✌️
here is the code
Explanation:
#include <stdio.h>
int main()
{
int x, y, z;
printf("Enter two numbers to add\n");
scanf("%d%d", &x, &y);
z = x + y;
printf("Sum of the numbers = %d\n", z);
return 0;
}
I hope it will be helpful for you
plz mark me as BRAINLIEST
Answered by
1
Hey there here is the Answer!
#include <stdio.h>
#include<conio.h>
int main()
{
int num1, num2, sum;
clrscr();
printf("Enter first number: ");
scanf("%d", &num1);
printf("Enter second number: ");
scanf("%d", &num2);
sum = num1 + num2;
printf("Sum of the entered numbers: %d", sum);
return 0;
}
Hope the answer helped you.
If you find it useful,
Do mark it as Brainliest.
Similar questions