Write a program to perform the following task by using mathematics functions :-
I)Store a number -105 and convert it to positive number and print.
Answers
Answered by
10
Answer:
class number
{
static void main()
{
int a = -105;
int b= Math.abs(a);
System.out.println(b);
}
}
PLEASE MARK AS BRAINLIEST IF HELPED
Answered by
1
Answer:
class number
{
static void main()
{
int a = -105;
int b= Math.abs(a);
System.out.println(b);
}
}
PLEASE MARK AS BRAINLIEST IF HELPED
Explanation:
Similar questions