I have the following problem that I need help with.
Code:
#include <stdio.h>
int doubled(int number);
int tripled(int number);
// TODO - Fix the program to print the correct values
// using the functions provided
// TODO - Replace the following with your name: <student name>
int main()
{
int x, xx, xxx = 0;
x = 12;
printf("%d doubled is: %d \n", x, xx);
printf("%d tripled is: %d \n", x, xxx);
return 0;
}
// TODO - Fix this function to return the correct value
// returns double the number sent in
int doubled(int number)
{
return 0;
}
// TODO - Fix this function to return the correct value
// returns triple the number sent in
int tripled(int number)
{
return 0;
}
Any and all help is appreciated.