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
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
1
I am looking for the answer
Similar questions