Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example;
- class HelloCodiva {
- public static void main(String[] args) {
- xdxd nwm = new xdxd();
- System.out.print(nwm.dodaj(10,2)+"\n");
- System.out.print(nwm.odejmij(10,2)+"\n");
- System.out.print(nwm.pomnoz(10,2)+"\n");
- System.out.print(nwm.podziel(10,2)+"\n");
- }
- }
- package com.example;
- public class xdxd {
- public static int dodaj(int a, int b){
- return a+b;
- }
- public static int odejmij(int a, int b){
- return a-b;
- }
- public static int pomnoz(int a, int b){
- return a*b;
- }
- public static float podziel(int a, int b){
- return a/b;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement