Why I choose python over java?
Because Python Is Easy to Use:
A simple program written in C++, C, Java and Python. All program prints "Hello world".
C++ Program :
#include
int main()
{
std::cout << "Hello World" << std::endl;
return 0;
}
C Program :
#include
int main(int argc, char ** argv)
{
printf(“Hello, World!\n”);
}
Java Program :
public class Hello
{
public static void main(String argv[])
{
System.out.println(“Hello, World!”);
}
}
Python Program :
print ("Hello World")
A simple program written in C++, C, Java and Python. All program prints "Hello world".
C++ Program :
#include
int main()
{
std::cout << "Hello World" << std::endl;
return 0;
}
C Program :
#include
int main(int argc, char ** argv)
{
printf(“Hello, World!\n”);
}
Java Program :
public class Hello
{
public static void main(String argv[])
{
System.out.println(“Hello, World!”);
}
}
Python Program :
print ("Hello World")
Comments
Post a Comment