Programming
Programming
Kotlin, Java
fun main(args: Array<String>) {
val first = 1.5f
val second = 2.0f
val product = first * second
println("The product is: $product")
}
public class MultiplyTwoNumbers {
public static void main(String[] args) {
float first = 1.5f;
float second = 2.0f;
float product = first * second;
System.out.println("The product is: " + product);
}
}
Go, Python
func main() {
fmt.Println("hello world")
}
print('Hello, world!')
C, C#, C++
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
int main()
{
std::cout << "Hello World!" << std::endl;
return 0;
}