Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Wichlinski {
- public static void main(String[] args){
- Calculate(2,2,-2,2);
- }
- public static void Cal.culate(int a, int b, int c, int d){
- if(a == c && b == d){
- System.out.print("Funkcje się nakładają");
- }
- else if((c * -1) == a || (a * -1) == c && b == d){
- System.out.print("Funkcje mają jeden punkt wspólny");
- }
- else{
- System.out.print("Funkcje nie mają punktów wspólnych");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement