7 lines
160 B
Text
7 lines
160 B
Text
import ballerina/io;
|
|
|
|
public function main() returns error? {
|
|
string s = "1049";
|
|
int a = check int:fromString(s);
|
|
io:println((a + 1).toString());
|
|
}
|