Q1-
unknown
c_cpp
a year ago
330 B
9
Indexable
#include <iostream>
using namespace std;
int f91(int N) {
if (N >= 101) {
return N - 10;
} else {
return 91;
}
}
int main() {
int N;
while (cin >> N) {
if (N == 0) {
break;
}
cout << "f91(" << N << ") = " << f91(N) << endl;
}
}
Editor is loading...
Leave a Comment