Pages

How to subtract two numbers in C.

1.How to subtract two numbers in C.

#include<stdio.h>


void main()
{
          int a=7,b=4;
          int c;
          c=a-b;
          printf("a-b=%d",c);

}

Output :
3

1 comment: