Middle
3
Choose a programming language and start with one of the examples below: # Python ----------------- def main(): print("Hello, world!") main() // C++ ------------------- #include <iostream> int main() { std::cout << "Hello, world!" << std::endl; return 0; } // PHP ------------------- <?php echo "Hello, world!." "; // Java ------------------- public class Main { public static void main(String[] args) { System.out.println("Hello, world!"); } } // Java Script (function main() { console.log('Hello, world!'); })(); // Go ------------------- package main import "fmt" func main() { fmt.Println("Hello, world!") } // Erlang ------------------- public static void Main() { MyStruct myStruct = new MyStruct(); // ? str.Id = 1; // ? str.Name = "1"; // ? MyClass myClass = new MyClass(); // ? myClass.Method(); } public struct MyStruct { public int Id; public string Name; } public class MyClass { private MyStruct _fieldStruct; public void Method() { MyStruct localStruct = new MyStruct(); // ? localStruct.Name = "Hello"; // ? _fieldStruct.Name = "World"; // ? } }
Companies where asked
ФГУП "ЗащитаИнфоТранс"