PL:Python 3Code:
b = float(input("Enter \"b\" number: "))
if b == 0:
b = b+1
print(b)
else:
b = b*4
C++
Объяснение:
#include <iostream>
using namespace std;
int main() {
int b;
cout << "Enter 'B': ";
cin >> b;
if (b == 0) {
b = b + 1;
}
else {
b = b * 4;
cout << b;
PL:
Python 3
Code:
b = float(input("Enter \"b\" number: "))
if b == 0:
b = b+1
print(b)
else:
b = b*4
print(b)
C++
Объяснение:
#include <iostream>
using namespace std;
int main() {
int b;
cout << "Enter 'B': ";
cin >> b;
if (b == 0) {
b = b + 1;
}
else {
b = b * 4;
}
cout << b;
}