i have 2 question i didnt know how to solve it so plzzz help:?
the first one i have answer it but i think it is wrong
the second one i didnt know it at all
Q: Write a program to enter some numbers and output the reverse of only odd numbers
A:
#include<iostream>
using namespace std;
void main()
{
int some,odd,number,loop;
cout<<"the odd number \n";
cin>>number;
loop=some;
odd=number%2==0;
cout<<odd;
}
Q: write 2 functions: int twice (int) which returns double of a number and another function int make a number (int, int, int,) which returns a number made out of 3 digits. Using this write a program which accepts 3 digits and output the 3 digit number and its double
[code] Your code goes here [/code]
main must return int
Your program is outputting if the number is odd or even. How do you define the reverse of a number?