package pl.codegym.task.task03.task0303;
/*
Wymiana walut
*/
public class Solution {
public static void main(String[] args) {
konwertujEurNaUsd(200, 4.12);
konwertujEurNaUsd(200, 4.14);
{
System.out.println(konwertujEurNaUsd(200, 4.12));
System.out.println(
konwertujEurNaUsd(200, 4.12));
}
}
}
public static double konwertujEurNaUsd(int eur, double kurswymiany) {
double usd;
usd= eur * ;
return usd;CO jest nie tak ze sie nie chce skompilowac ? prosze o pomoc
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Gellert Varga
12 January 2021, 23:56
The "public static double konwertujEurNaUsd()" method needs to be inside the curly brackets.
Inside the class, but outside the main() method.
With the curly bruckets you can control where starts a method (or a class) and where it ends.
0