Computer Science, asked by AKASH84101, 6 months ago

Write a program to find the value of S from the relation:S=|a|+|b|+(a³+b³). Input values of a,b

Answers

Answered by mcjuniadiqbal
1

Answer:

Write a single statement to add up the first digit and the last digit of a three digit number stored in the

variable named x and assign the sum to y.

Explanation:

Write a single statement to add up the first digit and the last digit of a three digit number stored in the

variable named x and assign the sum to y.

Answered by BrainlyProgrammer
3

Answer:

assuming it is Java programming

import java.util.*;

class no

{

public static void main (String ar[])

{

Scanner Sc=new Scanner (System.in);

int a,b,s=0;

a=Sc.nextInt(); //Input Statement

b=Sc.nextInt(); //Input Statement

s=Math.abs(a)+Math.abs(b)+(Math.pow(a,3)+Math.pow(b,3));

System.out.println("S="+s);

}

}

Hope it's helps u....mark me brainliest

Similar questions