Computer Science, asked by pritamdeydpsjkp4147, 4 months ago

n=10

while n<5:

print(n+n)

n+=10

print(“Program done”)​

Answers

Answered by savithas241973
0

Answer:

#include <iostream>

#include <iostream>int main(){

#include <iostream>int main(){ using namespace std;

#include <iostream>int main(){ using namespace std; int n = 1;

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){ cout << n << endl;

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){ cout << n << endl; n++;

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){ cout << n << endl; n++; }

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){ cout << n << endl; n++; } return 0;

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){ cout << n << endl; n++; } return 0;}

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){ cout << n << endl; n++; } return 0;}Output

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){ cout << n << endl; n++; } return 0;}OutputIn our example, firstly, we assigned a value 1 to a variable 'n'.

#include <iostream>int main(){ using namespace std; int n = 1; while( n <= 10){ cout << n << endl; n++; } return 0;}OutputIn our example, firstly, we assigned a value 1 to a variable 'n'.while(n <= 10) - checks the condition 'n <= 10'. Since the value of n is 1 which is less than 10, the statements within the braces { } are executed.

Similar questions