Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void sumaPotencija(int a, int b, int c, int n, int *rez1, int *rez2) {
- int suma = a+b+c;
- int an=1, bn=1, cn=1;
- for (int i = 1; i <= n; ++i) {
- an *= a;
- bn *= b;
- cn *= c;
- }
- *rez1 = an + bn + cn;
- int suman=1;
- for (int i = 1; i <= n; ++i)
- suman *= suma;
- *rez2 = suman;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement