Level: beginner
Question: Write a program to add two numbers.
Solution:
#include <stdio.h>
int main() {
int num1 = 5, num2 = 10, sum;
sum = num1 + num2;
printf("Sum = %d\n", sum);
return 0;
}
Question: Write a program to add two numbers.
#include <stdio.h>
int main() {
int num1 = 5, num2 = 10, sum;
sum = num1 + num2;
printf("Sum = %d\n", sum);
return 0;
}