You can do it simpler just by using preprocessor directive
#include
void main()
{
int a, b;
cout << "Enter a: ";
cin >> a;
cout << "Enter b: ";
cin >> b;
cout << "a raised to power b is: " << pow(a, b);
}
But if you know that and you still want to use a loop check following out.
//some headfiles here
void main()
{
int a, b, result;
cout << "Enter a: ";
cin >> a;
result = a;
cout << "Enter b: ";
cin >> b;
for (int i =1; i <= b; i++)
{
result*=a;
}
cout << "a raised to power b is: " << result;
}
There are no natural limits to the exponent a number can be raised to, and there are an infinite number of real numbers between "2.0" and 3.0".
No, I was not raised in a barn. I am a computer program and do not have physical form or a childhood experience.
The correct preposition to use depends on the specific context. "In the yard" typically refers to being inside the boundaries of the yard, while "on the yard" would suggest being on the surface of the yard. For example, you would say "in the yard" if you were playing within the yard's confines, and "on the yard" if you were standing on top of it.
Cattle and sheep are still raised in large numbers on the Great Plains.
Cattle are raised for the cow's natural resources. These natural resources include meat, leather and milk. Cows are raised in several countries in the world and are a sacred animal in India.
2
Metaphor
Nurture, such as upbringing, environment, and experiences, can shape and influence natural characteristics by fostering certain traits while suppressing others. For example, positive reinforcement can encourage social skills, while a lack of support can hinder emotional development. Ultimately, the interplay between nature and nurture determines an individual's unique characteristics.
The raised number, or exponent, is the number of times the base is used as a factor.
these numbers are call like terms
emergency banking act
Most 11 year old girls speak the language they were raised in.