MCPcopy Create free account
hub / github.com/Manvityagi/PW-Skills-Java-Course-Codes / Main

Class Main

Lecture 09_Loops_Patterns/src/Main.java:1–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1public class Main {
2 public static void main(String[] args) {
3 float p = 34.5f;
4 float r = 2.2f;
5 float t = 3.5f;
6
7 float si = ((p*r*t)/100);
8 System.out.println(si);
9
10
11// int a[] = { 1, 4, 7, 9 };
12//
13// int n = a.length;
14// int b[] = a;
15//
16//// b = a;
17//
18// b[0] = 5;
19//
20// System.out.println("Original array ");
21// for (int i = 0; i < n; i++)
22// System.out.print(a[i] + " ");
23//
24// System.out.println("\nReferenced Array ");
25// for (int i = 0; i < n; i++)
26// System.out.print(b[i] + " ");
27
28// double[] wts = new double[3];
29// float[] heights = {5.5f, 5.0f, 6.5f};
30//
31// int marks[] = new int[3];
32// String[] names = {"Meeta", "Shivangi", "Meghna"};
33//
34// wts[0] = 56.82;
35// wts[1] = 45.9;
36//
37// marks[0] = 2;
38// marks[1] = 3;
39//
40// System.out.println("Names: ");
41// for(int i = 0; i < 3; i++){ //names.length
42// System.out.println(names[i]);
43// }
44//
45// System.out.println("Weights: ");
46// for(int i = 0; i < 3; i++){ //weights.length
47// System.out.println(wts[i]);
48// }
49//
50// System.out.println("Marks: ");
51// for(int i = 0; i < 3; i++){
52// System.out.println(marks[i]);
53// }
54//
55// System.out.println("Heights: ");
56// for(int i = 0; i < 3; i++){
57// System.out.println(heights[i]);
58// }
59//
60// for(int i = 0; i < 3; i++){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected