Math, asked by sghshs, 11 months ago

Write a program to accept 3 numbers, divide their sum by the smallest number and multiply their sum by the greatest number.
No copy or spam is allowed!!

Answers

Answered by amilsiraj
1

Answer:

<#includi upstream. h>

voidmain{}

{

{

int=x,

int=y,

int=z,

int s=x+y+z/x. /*let x is smalle

at int*/

}

{

int z=x+y+z/z. /* z is the grea

test int*/

return(z&s)

Answered by Anonymous
14

//Using Java

//Using the utilization process

import java.util.*;

public class Numbers

{

public static void main(String args[])

{

//using scanner class

Scanner in= new Scanner(System.in);

//Scanner class is mandatory for taking inputs

int a,b,c,d,e,f,g;

//declairing the values of the numbers

System.out.println("Enter the numbers");

a=in.nextInt();

b=in.nextInt();

c=in.nextInt();

d=Math.max(a,b,c);

e=Math.min(a,b,c);

f=(a+b+c)/e;

System.out.println("The result of the division is"+f);

g=(a+b+c)*d;

System.out.println("The result of the multiplication is"+g);

}

}

Similar questions