Resources » Articles/Knowledge Sharing » Computer & Technology

JAVA code to find the average marks


Posted Date: 15-Aug-2008  Last Updated:   Category: Computer & Technology    
Author: Member Level: Gold    Points: 2


Are you searching for JAVA code to find the average marks and its project code? Then you are in the right page, you can get it here.



import java.util.Scanner;
class avgmarks
{
public static void main (String args[])
{
Scanner o=new Scanner(System.in);
System.out.println("marks in maths ;");
float m=o.nextInt();
System.out.println("marks in english ;");
float e=o.nextInt();
System.out.println("marks in physics ;");
float p=o.nextInt();
System.out.println("marks in chemistry ;");
float c=o.nextInt();
System.out.println("marks in hindi ;");
float h=o.nextInt();
float a=((e+m+p+h+c)/500)*100;
System.out.println("average "+a);
}
}


Did you like this resource? Share it with your friends and show your love!




Responses to "JAVA code to find the average marks"

No responses found. Be the first to respond...

Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Submit Article     Return to Article Index

    Awards & Gifts
    Active Members
    TodayLast 7 Daysmore...

    ISC Technologies, Kochi - India. Copyright © All Rights Reserved.