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
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
1
Answer:
this is mistake
Explanation:
String args[]
Similar questions
Computer Science,
1 month ago
Science,
1 month ago
Physics,
2 months ago
Math,
9 months ago
Hindi,
9 months ago