#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}public class PrintName {
public static void main(String[] args) {
// Define the name you want to print
String name = "Gemini";
// Use a for loop to print it 3 times
for (int i = 0; i < 3; i++) {
System.out.println(name)
}
}
}Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article