1.Write a c++ program to prompt the user to input a number .The program should then output the number and a message saying whether the number is odd, even or zero.
2. Write a c++ program to prompt the user to input a number .The program should then output the number and a message saying whether the number is divisible by
i need the and urgently pls help with this
Answers
Answered by
0
Explanation:
/wwr-wmwn-uoe. Join for the sexual chat only for interested girls between 15 to 17 now
Answered by
0
Answer:
1)
include <iostream>
using namespace std;
int main()
{
int n;
cout << "Enter an integer: ";
cin >> n;
if ( n % 2 == 0)
cout << n << " is even.";
else
cout << n << " is odd.";
return 0;
}
2)
#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Enter an integer: ";
cin >> number;
cout << "You entered " << number;
return 0;
}
sister i know this much if you find it helpful then please mark me as a brainlist..
Similar questions