Write python code for assigning the average of values of variables length and breadth to a
variable sum
Answers
Answered by
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
Physics,
2 months ago
India Languages,
2 months ago
Social Sciences,
5 months ago
English,
5 months ago
Science,
11 months ago
Hindi,
11 months ago