Computer Science, asked by vihant2943e, 1 month ago

Write the java expression for the following mathematical expressions: d= (3x+5x2 ) / (a+b)​

Answers

Answered by debarunbanerjee1205
1

Answer:

import java.util.*;

class expressions{

public static void main(String args[]){

Scanner sc=new scanner(System.in);

System.out.println("Enter any number");

int a=sc.nextInt();

int b=sc.nextInt();

int x=sc.nextInt();

int c=(3*x+5*2*x)/(a+b);

System.out.println(c);

        }

}

pls mark my answer as the brainliest if it helps

Similar questions