C supports basic math operations one of which is the addition '+' operation. Two add two variables, simple put the '+' sign between them.
Print the sum of the two declared variables to complete the task.
NOTE : You are expected to fix any other errors that you come across.
Sample Output 0
Source Code
#include <stdio.h>
int main()
{
int var1 = 25, var = 35;
printf("%d", _ ) //replace the '_' by var1 + var2 to add them.
return 0;
}
Comments
Post a Comment