Computer Science, asked by mahimaminipdj9z3, 1 year ago

ANYONE COMPUTER GENIUS ( PLS HELP ) Tell this in programming language java ...... Write a program to input two nos . If the first no is greater than the the second no then print 'OK' otherwise print 'NICE' ( PLS HELP )

Answers

Answered by princessAngela
1
Here is your answer...

class Computer
{
void accept(double a, double b)
{
if(a<b)
System. out. println("OK") ;
else
System. out. println("NICE") ;
}
}

mahimaminipdj9z3: thanks
princessAngela: wlcm
Similar questions