c programme to add two number


//add two number
#include<stdio.h>
#include<conio.h>
 void main()
{
    int num1,num2,sum;
printf("Enter first number\n");
scanf("%d",&num1);
printf("Enter second number");
scanf("%d",&num2)
sum=num1+num2;
printf("sum of two number is %d ",sum);
getch();
}


OUTPUT;

    Enter first number =10
    Enter second number=20

    sum of two number is =30



No comments:

Post a Comment