On my previous topic, I was sharing about basic mathematics. I already show you how to add two integers and how to add a couple of integers being manipulated through your inputs and looping statements. Now, basic mathematics will not be complete without subtraction. Subtraction is the process of taking out certain amount from another amount. To understand more of this process I made a program that subtracts numbers. It also acts like a calculator.
This program, like the previous addition program I made, is used with a data type int because we're using integers, which needs to be whole numbers as inputs. Check out the codes below.
1:
2: #include<stdio.h>
3: #include<conio.h>
4:
5: int main()
6: {
7: int a,b,c;
8:
9: printf("Enter number: ");
10: scanf("%d", &a);
11:
12: printf("\nEnter number: ");