Computer Science, asked by rishikakasturi, 5 months ago


Write python code for assigning the average of values of variables length and breadth to a
variable sum

Answers

Answered by mohammadadnan7
0

Answer:

import java.util.*;

class Code

{

public static void main (String args [])

{

Scanner sc=new Scanner (System.in);

double l,b;

double sum=0;

System.out.println(" enter the length and breadth");

l=sc.nextDouble();

b=sc.nextDouble();

double avg=l+b/2;

avg=sum;

System.out.println(sum);

}

}

Similar questions