Online Compiler C

#include <stdio.h> int main() { printf("1 Hello, World!\n"); printf("2 Hello, World!\n"); printf("3 Hello, World!\n"); printf("4 Hello, World!\n"); return 0; }
1) This code prints four lines of text, each starting with a number and "Hello, World!".

2) Consider using a loop structure to repeat the same operation multiple times with changing values. Think about how you could use a variable to control both the number of repetitions and the printed number.