Computer Science, asked by sahil4342, 1 year ago

write a program to input three integers and find the sum of cube root of there last digits ​

Answers

Answered by hanpriya
13

Answer:

import java.util.*;

public class sum

{

public static void main (String args[])

{

Scanner sc=new Scanner(System.in)

System.out.println("enter the 3 numbers");

int a,b,c;

a=sc.nextInt();

b=sc.nextInt();

c=sc.nextInt();

Explanation:

Answered by Snehashisghosh9999
9

Answer:

import java.util.*;

Public class program

{

Public static void main(String args[]) {

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

Scanner sc=new scanner(System.in)

System.out.println("Enter three integers")

a=sc.nextint();

b=sc.next int();

c=sc.nextint();

d=a%10;

e=b%10;

f=c%10;

s=Math.cbrt(d)+Math.cbrt(e)+Math.cbrt(f);

System.out.println("Sum="+s)

}

}

Explanation:

Similar questions