1.Apa yg kalian ketahui ttg hasil kali fungsi??berikan 2 contoh perhitungannya!
2.Apa yg kamu ketahui ttg fungsi invers?berikan contohnya!!
LA FUNGSI:
import java.io.*;
class fungsi
{
public static void main(string[] args)throws IOexception
{
bufferedReader a=new ......(new InputStreamReader(System.in));
int n=0;
int k=0;
int i;
system.out.print("Banyak Domain : ");
int x=Integer.parseInt(a.readLine());
system.out.print("Banyak Range : ");
int y=Integer.parseInt(......());
int []dm=new int[x];
int []Rn=new int]...];
for (i=0;i
System.out.print("Domain ke "+(i+1)+" : "); dm[i]=Integer.parseInt(...............());
}
for (......... ;i
System.out.print("Range ke "+(i+1)+" : "); Rn[i]=............................(a.ReadLine());
}
System.out.print("Banyak Relasi ");
int z=.....(a.readLine());
int []fn=new int[z];
int []dmn=new int[z];
int []Rng=new int[z];
for (i=0;i
System.out.print("Domain ");
dmn[i]=integer.parseInt(a.readLine());
System.out.print("Range ");
Rng[i]=Integer.parseInt(a.readLine());
}
System.out.print("Domain={");
for (i=0;i
System.out.print(dm[i]);
if (i<(x-1))
{
System.out.print(",");
}
}
System.out.println("}");
System.out.print("Range={");
for (i=0;i
System.out.print(Rn[i]);
if (i<(y-1))
{
system.out.print(",");
}
}
System.out.print("}");
}
}
View full article and comment >>>