Advertisement
Guest User

1234

a guest
Jan 18th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public class Wichlinski {
  2.  
  3. public static void main(String[] args){
  4. Calculate(2,2,-2,2);
  5. }
  6. public static void Cal.culate(int a, int b, int c, int d){
  7. if(a == c && b == d){
  8. System.out.print("Funkcje się nakładają");
  9. }
  10. else if((c * -1) == a || (a * -1) == c && b == d){
  11. System.out.print("Funkcje mają jeden punkt wspólny");
  12. }
  13. else{
  14. System.out.print("Funkcje nie mają punktów wspólnych");
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement