Created
February 8, 2019 23:06
-
-
Save gavr123456789/84f4de331af50795f6a0fe19219ed136 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main(string[] args) { | |
string sass = "sas, sos, sus, sыs, ses, sюs"; | |
int a=42,b=5; | |
string str="%d — ответ на главный вопрос жизни, вселенной и всего такого".printf(a); | |
// bool b = bool.parse("false"); // => false | |
// int i = int.parse("-52"); // => -52 | |
// double d = double.parse("6.67428E-11"); // => 6.67428E-11 | |
// string s1 = true.to_string(); // => "true" | |
// string s2 = 21.to_string(); // => "21" | |
// stdout.printf(str); | |
double[] sassMass = {1.5,2.5,3.5,8.5}; | |
string ses=""; | |
foreach (double i in sassMass) | |
ses +=i.to_string()+", "; | |
stdout.printf ("%s\n", ses); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment