Computer Science, asked by harinepu16, 2 days ago

Given the method below,write a mani( ) method that includes everything necessary to call given method.
int thrice ( int x)
{
return a * 3;
}​

Answers

Answered by njlavanya2001
3

Void main() {

Int num;

Printf("enter number:") ;

Scanf("%d", & num) ;

Int b =thrice(num) ;

Printf("thrice of the num:%d, b) ;

}

Explanation:

Here the main method at first ask the user for input a number to which thrice has to be found the it stores the number in num variable which is then passed as value to thrice function which in turn return thrice value of the input to main method which is then get stored in int b and the value is printed at last.

Answered by prachiisright8888
1

I am looking for the answer

Similar questions