C Language Question

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;
}