Write a c program to subtract two numbers and results should not be in negative
Answers
Answered by
0
Given : subtract two numbers and results should not be in negative
To Find : program
Solution:
Providing u algorithm
START
FLOAT A , B // A & B are two input numbers )
Float C ( C is the Difference of two numbers )
if ( A > B )
{
C = A - B
}
Else
{
C = B - A
}
Print C
END
Learn More:
How do I write an algorithm that multiply the age of a person by its ...
https://brainly.in/question/9522755
Answered by
0
Explanation:
There are many languages in which the program or the flowchart can be written. The below program is written in C language, a commonly used language
Program
void main () :
bool done = false
int n; // n is the first number
int m; //m is second the number
int s
int r
s = n - m
r = abs(s)
print( "The output result is %i" ,r )
return
Similar questions