Computer Science, asked by life9208, 1 year ago

Print natural number from 1 to 5

Answers

Answered by sarthaksharma1pb0vzo
1

Answer:

in c++ we can use a for loop

Explanation:

for(int x;x<6;x++){

std::cout << x;

}

Similar questions