Q:3: Input a number/value from the user, check whether it is negative or positive. If it is negative then convert it into a positive number.
Answers
Answered by
0
Answer:
void main(int n)
{
if(n>0)
System.out.println(n) ;
else
System.out.println(n*-1);
}
Similar questions