Following are the program to the given question:
Program Explanation:
Program:
#include <iostream> //defining header file
using namespace std;
int main() //defining main method
{
int squ=0,n=0; //defining variable
cout<<"Square between 0 to 100 :"; //message
while(n<100) //loop for calculate Square
{
n=squ*squ; //holing value in n variable
cout<<n<<" "; //print Square
squ++; //increment value by 1
}
cout<<endl; //for new line
n=1; //change the value of n
cout<<"A Positive number, which is divisible by 10: "; //message
while (n< 100) //loop for check condition
{
if(n%10==0) //check value is divisible by 10
{
cout<<n<<" ";//print value
}
n++; //increment value of n by 1
}
cout<<endl; //for new line
cout<<"A Powers of two less than n: "; //message
n=1; //holing value in n
while (n< 100) //loop for check condition
{
cout<<n<<" ";//print value
n=n*2; //calculate value
}
return 0;
}
Output:
Please find the attached file.
Learn more:
brainly.com/question/11512266