Hello guys!!! Hope all of you are well by the grace of Almighty. Today we will learn how to subtract a number from another number. Let's look at a program:
Output: Subtraction Result: 5
we can also do this code in this way:
Output: Subtraction Result: 5
If we want to scan the two integer numbers then the code is looked like the following:
Output will depend on input. If inputs are "10" & "5", then output will be:
Enter Two Numbers: 10 5
Subtraction result: 5
If we want output more clear, then we can code the following way:
In this code if inputs are "10" & "5", the output will be looked like:
Enter Two Numbers: 10 5
Subtraction: 10 - 5 = 5
Thank you all...:)
Output: Subtraction Result: 5
we can also do this code in this way:
Output: Subtraction Result: 5
If we want to scan the two integer numbers then the code is looked like the following:
Output will depend on input. If inputs are "10" & "5", then output will be:
Enter Two Numbers: 10 5
Subtraction result: 5
If we want output more clear, then we can code the following way:
In this code if inputs are "10" & "5", the output will be looked like:
Enter Two Numbers: 10 5
Subtraction: 10 - 5 = 5
Thank you all...:)
0 comments:
Post a Comment