Program
#include<stdio.h>
main()
{
int a,b,diff;
printf("enter the values of a and b: \n");
scanf("%d%d",&a,&b);
diff=a-b;
printf("difference is:%d",diff);
}
Output
enter the vales of a and b:
5 3
difference is:2
#include<stdio.h>
main()
{
int a,b,diff;
printf("enter the values of a and b: \n");
scanf("%d%d",&a,&b);
diff=a-b;
printf("difference is:%d",diff);
}
Output
enter the vales of a and b:
5 3
difference is:2
No comments:
Post a Comment