示例#1
0
 private static async Task <CompilerResponse> CompilarJava(CompilerApiClient client)
 {
     return(await client.Compile(@"                
         public class Main {
             public static void main(String[] args) {   
                 System.out.println(""Ola mundo"");
                 for (int i = 0; i < 100; i++)
                 {
                     System.out.print(i + "", "");
                 }
             }
         }", Array.Empty <string>(), LinguagensProgramacao.Java));
 }
示例#2
0
 private static async Task <CompilerResponse> CompilarCSharp(CompilerApiClient client)
 {
     return(await client.Compile(@"
         using System;
         public class Program {
             public static void Main(string[] args) {
                 Console.WriteLine(""Ola mundo"");
                 for (int i = 0; i < 100; i++)
                 {
                     Console.Write(i + "", "");
                 }
             }
         }", new string[] {  }, LinguagensProgramacao.CSharp));
 }
示例#3
0
        private static async Task <CompilerResponse> CompilarPython(CompilerApiClient client)
        {
            return(await client.Compile(@"print('Ola mundo');
for x in range(100):
    print('{}, '.format(x), end = '');", new string[] {  }, LinguagensProgramacao.Python));
        }