C Language
#include<stdio.h>
main()
{
//Declare variables
int num1,num2,sub;
//Reading 1st number
printf("\nEnter 1st number:");
scanf("%d",&num1);
//Reading 2nd number
printf("\nEnter 2nd number:");
scanf("%d",&num2);
sub=num1+num2;
printf("\n Subtraction of Num1 & Num2 =%d",sub);
}
Output :
thanks for the tutorial
ReplyDeletegood tutorial
ReplyDelete