A function can have more than one parameter. values of the parameters are passed to the function when it is called. true ofr flase
Answers
Answered by
4
hey mate here is ur ans
it is TRUE
FOR EG
import java. io. *;
import java. until. Scanner;
public class Brainly
{
public static void main(String args[])
{
int a, b,r;
Scanner sc=new Scanner (System. in);
PrintWriter pw=new PrintWriter(System.out,true);
pw. println("enter two numbers ");
a=sc.nextInt();
b=sc.nextInt();
r=ob.passing(a,b);
pw. println ("the sum of a and b"+r);
}
public int passing (int a, int b)
{
int r;
r=a+b;
return r;
}
}
hope it helps u
it is TRUE
FOR EG
import java. io. *;
import java. until. Scanner;
public class Brainly
{
public static void main(String args[])
{
int a, b,r;
Scanner sc=new Scanner (System. in);
PrintWriter pw=new PrintWriter(System.out,true);
pw. println("enter two numbers ");
a=sc.nextInt();
b=sc.nextInt();
r=ob.passing(a,b);
pw. println ("the sum of a and b"+r);
}
public int passing (int a, int b)
{
int r;
r=a+b;
return r;
}
}
hope it helps u
Similar questions
Accountancy,
7 months ago
Physics,
7 months ago
Physics,
1 year ago
Math,
1 year ago
Science,
1 year ago