You are on page 1of 1

Tema de vacan

2.Ana are prune1


Baba are mere2
Popa are pere3
3. Ce animal mnnc copiii ri?
Cocosul
4.
Judeul
Arad
Braov
Crligele
Tulcea
Zimnicea
Total

Vrabia

Lupul

Populaia
75290
299144
1374500
444555
1044576
3238065

Problema info
#include<iostream>
#include<math.h>
using namespace std;
int main()
{int a,b,c,d;
cout<<"A= ?";cin>>a;
cout<<"B= ? ";cin>>b;
c=0;
for(d=1;d<=b;d++)
{c=c+pow(a,d-1);}
cout<<"Numarul de mere = "<<c;
return 0;
}

1
2

Cainele

Suprafaa
1902,52
766,25
641,882
930,11
1012,5
5253,262