Computer Science, asked by ashmitawalia07, 2 months ago

write a program in java to compute and display the result of expression :x³+2*2+x-1


whoever gives the correct answer will be marked as brainliest.​

Answers

Answered by aryamanmandal0201
10

Explanation:

import java.util.Scanner;

class demo1

{

public static void main(String[] args)

{

Scanner sc=new Scanner(System.in);

int x=sc.nextInt();

int y=x*x*x;

int a=2*2;

int z=x-1;

int s=y+a+z;

System.out.println(s);

}

}

hope this will help you ☺️☺️☺️

Mark me as the brainliest ☺️☺️☺️☺️

Answered by sanehachahal383
1

Answer:

this is mistake

Explanation:

String args[]

Similar questions