Skip to content

isankha007/Java_Introdution

Repository files navigation

Java_Introdution

This is basic Java programs that I use to learn Java

buy 2 get three logic // Online Java Compiler // Use this editor to write, compile and run your Java code online

int actualQuantity;
    actualQuantity = (quantity / 5) * 2;
    if ((quantity % 5) >= 2) {
        actualQuantity += 2;
    } else {
        actualQuantity += quantity % 5;
    }
    return actualQuantity;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages