Write a program in C++ to display numbers from 1 to 10 using while statement.
Answers
Answered by
0
Answer:
#include <iostream>
int main() {
int i = 1;
while (i <= 10) {
std::cout << "\n" << i;
i++;
}
}
//mark me as the brainliest
//and it is the correct way
Similar questions