C program to accept two numbers from the user and display their sum - With Output

#include<stdio.h>
#include<conio.h>

void main()
{
     int num1,num2,sum;
printf("Enter any two numbers   \n");
scanf("%d%d",&num1,&num2);
sum=num1+num2;
printf(“Sum of two numbers is :  %d”,sum);

getch();

}

OUTPUT:

Enter any two numbers
42 65

Sum of two numbers is : 107
Share on Google Plus

About Akash Manhas

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment