Hello friends!!!!!

Subtraction of two numbers

It's a function with argument value and without return value

C LANGUAGE

9/29/20241 min read

#include <stdio.h>

int sub(int ,int );

int main() {

int a,b;

printf("We are going to calculate the subtraction n");

printf("Enter two numbers : ");

scanf("%d%d", &a, &b);

sub(a,b);

}

int sub(int a , int b) {

printf("Ans is %d", a-b);

}

Output :

We are going to calculate the subtraction

Enter two numbers : 2 1

Ans is 1

=== Code Execution Successful ===