what is the program output/errors
#include<iostream>
using namespace std;
int fun (int x, int y)
{
return x + y;
}
double fun (int x, int y)
{
return x * y;
}
int main()
{
cout<<fun(5, 10);
return 0;
}
Write a function called FindSequence. The function takes a 4-digit integer as parameter, validates the integer and returns 1 when the digits are in increasing order or 2 when the digits are in decreasing order or 0 when the digits are not in any order.
Write a program to help you calculate the amount of money that your customers have to
pay depending on how long they have used your computer (in hours).
first one hour = 1.20
subsequent hour = 0.80
Write statements to validate the number given below is a 4-digit integer and then to print the digits divisible by 2.
Using the methods
FindSum(int, int) //returns total
FindProduct(int, int) //returns the product of the two integers
Write the main method to find and print the answer of the expression;
The function takes a 4-digit integer as parameter, validates the integer and returns 1 when the digits are in increasing order or 2 when the digits are in decreasing order or 0 when the digits are not in any order
Write statements to validate the number given below is a 4-digit integer and then to print the digits divisible by 2.
The function takes a 4-digit integer as parameter, validates the integer and returns 1 when the digits are in increasing order or 2 when the digits are in decreasing order or 0 when the digits are not in any order.