1.

write a program in q basic to enter two numbers.If the first number is greater than second number then find the square of first number otherwise find cube of the second number. Who will tell first and correctly will be marked brainlist.

Answer»

import java.util.*public class greater(public STATIC void main (string ARGS() )(scanner in =new scanner (SYSTEM. in);int n,n1,max;system.out.println(' to enter the number ');n=in.next Int();n1=in.nextInt();for(i=0;i=LESS then n;i++);(if(i==max)n=max;if(n less than n1)n=math.sqrt(n);elsen1=math.pow(n1,3);)system.out.println(+n);))



Discussion

No Comment Found