Computer Science, asked by dbxtpt560gmailcom, 4 months ago

Write a program in C++ to display numbers from 1 to 10 using while statement.​

Answers

Answered by dhruvan3004
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
English, 2 months ago