a = '18'
b = int(a) + 3
print(b)
#Python
xxxxxxxxxx
const a = '18';
const b = parseInt(a) + 3;
console.log(b);
//JavaScript
public class Main {
public static void main(String[] args) {
String a = "18";
int b = Integer.parseInt(a) + 3;
System.out.println(b);
}
//Java
#include <iostream>
#include <string>
using namespace std;
int main() {
string a = "18";
int b = stoi(a) + 3;
cout << b;
return 0;
//C++