#include <iostream>
using namespace std;
int main()
{
int n;
cout << "Write number: ";
cin >> n;
if (n % 2 == 0) cout << n / 4;
if (n % 2 != 0) cout << n * 5;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main()
{
int n;
cout << "Write number: ";
cin >> n;
if (n % 2 == 0) cout << n / 4;
if (n % 2 != 0) cout << n * 5;
return 0;
}