Calculate the subtraction of two positive integers.(C-Language)














Learn Coding Easily



Calculate the subtraction of two positive integer numbers. ( C-Language) 


#include<studio.h>

#include<conio.h>

void main()

{

  clrscr()

  int a,b,sub;

  printf("enter the positive integer number a= ");

  scanf("%d",&a);

  printf("enter the positive integer number b= ");

  scanf("%d",&b);

  sub=a-b;

  printf("total= %d",sub);

  getch();

}



Example;

Compiler Name - Turbo C



Input











Output

1.







2.







3.







4.







5.









Thankyou.....👨‍💻🧑‍💻

Comments

Post a Comment

Popular Posts