Skip to content

Add changes on line 5 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import java.util.Scanner;
public class Smetka {
public static void main (String [] args)


// jabolki - 50 den kg, krusi - 60 den kg, grozje - 100den kg

double smetka = 0;

System.out.println("Vnesi sto si pazaruval vo kilogrami");

Scanner tastatura = new Scanner(System.in);

System.out.println("Jabolki: ");

double jabolki = tastatura.nextDouble();

System.out.println("Krusi: ");

double krusi = tastatura.nextDouble();

System.out.println("Grozje: ");

double grozje = tastatura.nextDouble();

smetka = jabolki*50+krusi*60+grozje*100;

System.out.println("Smetkata iznesuva "+smetka+" denari");
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import java.util.Scanner;
public class Smetka {
public static void main (String [] args)

//dobuel d;
// jabolki - 50 den kg, krusi - 60 den kg, grozje - 100den kg

double smetka = 0;

System.out.println("Vnesi sto si pazaruval vo kilogrami");

Scanner tastatura = new Scanner(System.in);

System.out.println("Jabolki: ");

double jabolki = tastatura.nextDouble();

System.out.println("Krusi: ");

double krusi = tastatura.nextDouble();

System.out.println("Grozje: ");

double grozje = tastatura.nextDouble();

smetka = jabolki*50+krusi*60+grozje*100;

System.out.println("Smetkata iznesuva "+smetka+" denari");
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

import java.util.Scanner;

public class Plostina {

public static void main(String[] args) {

double str1, str2, povrsina, perimetar;

Scanner tastatura = new Scanner(System.in);

System.out.println("Programata presmetuva povrsina i perimetar na ");

System.out.println("Vnesete dolzina na edna strana: ");

str1 = tastatura.nextDouble();

System.out.print("Vnesete dolzina na druga strana: ");

str2 = tastatura.nextDouble();

povrsina = str1*str2;

perimetar = 2*str1+2*str2;

System.out.println();

System.out.println("Perimetarot e: " + perimetar);

//System.out.println(perimetar);

System.out.println("Plostinata e: " + povrsina);

//System.out.println(povrsina);

}

}
Binary file not shown.
Binary file not shown.
Binary file not shown.
2,980 changes: 1,490 additions & 1,490 deletions .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

Large diffs are not rendered by default.

Binary file modified .metadata/.plugins/org.eclipse.jdt.core/1865797976.index
Binary file not shown.