Tech Study

Java Program To Calculate Batting Average

Introduction

In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..

class BattingAverage {
        public static void main(String arg[]) {
        int Totakmatches = 100, totalruns = 3500, Innings = 80, notout = 1;

        double avg;

        avg = totalruns / (Innings - notout);

        System.out.println("batting average=" + avg);

        }
}

Result

Java Program To Calculate Batting Average
Java Program To Calculate Batting Average

TaggedJava Program To Calculate Batting Average

Python Examples

Introduction: Python Examples are the basic programming concepts of python like python syntax,python data types,,python operators,python if else,python comments etc.. …

Read more

C String Functions

C String Functions perform certain operations, It provides many useful string functions which can come into action. The <string.h> header …

Read more