Computer Science, asked by NadimMollah, 8 months ago

1.Write a program in Java to using parameter input to find the area and perimeter of a rectangle.

2.Write a program in Java to input marks of 4 subjects and find the total marks and average. Print the total marks and average on separate lines.​

Answers

Answered by adityasainityyy56
2

Answer:

I have a great weekend too the other

Answered by Anonymous
7

Answer:

import java. util. Scanner;

public class MarksCalculator.

{ public static void main(String args[])

{ int markArray[] = new int[5];

int i; float sum=0;

float average, percentage; Scanner scan = new Scanner(System. in);

System. out. print("Enter marks for 5 Subjects : ");

for(i=0; i<5; i++){ markArray[i] = scan.

Similar questions