Solve this programming question:
Question: The following is simple java program with a for-loop and a simple function.
What is its equivalent in C++ code? Notice the similarity and differences between the codes provided below to C++.
Create a project and run the program and see how it runs. public class HelloWorld { public static void main(String[] args) { for(int i=0;i<10;i++) System.out.printf("Hello World =\n", sum(i,i)); } public static int sum(int a, int b){ return a+b; } }
Answer this java program and provide the C++ code.