W.A.P to input a number and if it is odd number by 10 otherwise multiply the number by 5. Display the result
Answers
Answered by
2
Answer:
Answer
Explanation:
class program
{
public static void main(int a)
int b;
int c;
{
if(a •/• == 0)
{ b = a*5;
System.out.prinrln("The answer is " + b);
}
else
{
c = a*10;
System.out.println("The answer is " + c);
}
}
}
plz mark me as the brainliest plz
Answered by
3
hope this was helpful for uh...
keep smiling^-^
Thank uh...!!
Attachments:
Similar questions
Geography,
1 month ago
Social Sciences,
1 month ago
Economy,
1 month ago
English,
3 months ago
Accountancy,
3 months ago
Math,
10 months ago
Math,
10 months ago