Sum of Two numbers
Code:
#include<stdio.h>
int main()
{
int num1,num2, sum;
printf("\n Enter the number of your choice");
scanf("%d%d",&num1,&num2);
sum = num1 + num2;
printf("\n Sum of two numbers %d and %d is = %d",num1,num2,sum);
getch();
return 0;
}
Code:
#include<stdio.h>
int main()
{
int num1,num2, sum;
printf("\n Enter the number of your choice");
scanf("%d%d",&num1,&num2);
sum = num1 + num2;
printf("\n Sum of two numbers %d and %d is = %d",num1,num2,sum);
getch();
return 0;
}
No comments :
Post a Comment