Sum of two numbers in c programming?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: C LanguageSum of two numbers in c programming?
chetan shidling asked 6 years ago

I need code.

1 Answers
chetan shidling answered 6 years ago

#include <stdio.h>
#include <stdlib.h>
int main()
{
int n1, n2, sum;
printf(“Enter two numbers\n”);
scanf(“%d %d”,&n1,&n2);
sum = n1 + n2;
printf(“Your sum is = %d”,sum);
}