Quick actions

cmd+k|ctrl+k

Navigation

Languages

Task №184

Snippet info

Language

Cpp

Visibility

public

Author

diety

Created

2018-11-18T17:17:55Z

Updated

2018-12-08T12:27:54Z

#include <iostream>
#include <cmath>
using namespace std;

int main() 
{
   int n,a;
   
   cout<<"Введите n"<<endl;
   cin>>n;
   
   a = 0;
   
   cout<<"Первый цикл"<<endl;
   
   while (pow(a,2)<n)
   {
       cout<<a<<endl;
       a++;
   }
   
   cout<<"Второй цикл"<<endl;
   
   while (pow(a,2)>n);
   {
       cout<<a<<endl;
       a++;
   }
   
return 0;
}
INFO