Python

python A simple Python program  # This is a simple Python script def greet(name):return f”Hello, {name}! Welcome to Python.” def add_numbers(a, b):return a + b if __name__ == “__main__”:user_name = input(“Enter your name: “)print(greet(user_name)) x = int(input(“Enter first number: “))y…

Java

Java Here’s a basic Java program that prints “Hello, World!” and shows the structure of a Java class:  public class Main {public static void main(String[] args) {System.out.println(“Hello, World!”);}}  How it works public class Main → defines a class named Main…

C language

C Language Here’s a basic C program:  #include <stdio.h> int main() {printf(“Hello, World!n”);return 0;}  What this does: #include <stdio.h> → includes standard input/output functions int main() → the main function where the program starts printf() → prints text to the…