Computer Science, asked by samiaghullamhussain, 5 months ago

a program that take two integer values and subtract them and show their result

Answers

Answered by rishisourav5
1

Hey Mate Here Is Your Answer...

Answer:

Example.....Input number 1: 40

Input number 2: 45

Output: -5

Code.. in C language..

#include<stdio.h>

int main()

{

int a,b,sub;

//Read value of a

printf("Enter the first no.: ");

scanf("%d",&a);

//Read value of b

printf("Enter the second no.: ");

scanf("%d",&b);

//formula of subtraction

sub= a-b;

printf("subtract is = %d\n", sub);

return 0;

}

Please Mark As Brainliest..

Similar questions