Video 6(ch1)

Yash
0


 Program:-




package com.company;

import java.util.Scanner;

public class Main {

 public static void main(String[] args) {

 Scanner sc=new Scanner(System.in);

 System.out.println("enter the marks of marathi:");

 float a=sc.nextFloat();

 System.out.println("enter the marks of english:");

 float b=sc.nextFloat();

 System.out.println("enter the marks of math:");

 float c=sc.nextFloat();

 System.out.println("enter the marks of science:");

 float d=sc.nextFloat();

 System.out.println("enter the marks of history:");

 float e=sc.nextFloat();

 float sum =a+b+c+d+e;

 float per=sum/500*100;

 System.out.print("your percentage is: "); 

 System.out.println(per);

 }

}




Video link:-https://youtu.be/C5me8SeuW9M?si=qNZwto2ZJprBe3Yk

Post a Comment

0 Comments
Post a Comment (0)
To Top