MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / main

Method main

Programs/Decimal_to_Binary.java:5–11  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

3
4public class BnaryCal {
5 public static void main(String[] args) {
6 Scanner scn = new Scanner(System.in);
7 int number = scn.nextInt();
8
9 calculateBinary(number, calculateLength(number));
10
11 }
12
13 static int calculateLength(int n){
14 int count =0;

Callers

nothing calls this directly

Calls 2

calculateBinaryMethod · 0.95
calculateLengthMethod · 0.95

Tested by

no test coverage detected