• Nie Znaleziono Wyników

31_function_definition_prototype

N/A
N/A
Protected

Academic year: 2021

Share "31_function_definition_prototype"

Copied!
1
0
0

Pełen tekst

(1)

//============================================================== // Funkcje;

// definicja funkcji, jej naglowek i prototyp. //

// ver data temat // 100 2001/10/11 Pierwszy projekt J.Mali // 102 2019/08/25 Cleanup //================================================================ #include <iostream> #include <math.h> using namespace std; //================================================================ // prototyp funkcji; definicja - nizej;

float Potega( float, int );

//================================================================ // definicja funkcji;

double Square( double x ) { return x*x; } //================================================================ // funkcja glowna; int main() { float x=0.5, y=2.5; int n=2;

cout << Potega( y, n ) << endl; cout << Square( x ) << endl; system("PAUSE");

return 0; }

//================================================================ // definicja funkcji;

float Potega( float y, int n ) {

float w=y;

for( int i=1; i<n; i++ ) w=w*y;

return w; }

Cytaty

Powiązane dokumenty

Zadania omówione na ćwiczeniach 22.02.2016 (grupa 1, poziom

Keywords: convex nondifferentiable minimization, projection method, subgradient method, acute cone, obtuse cone.. 1991 Mathematics Subject Classification:

Criteria for analytic continuation into a domain of a function given on part of the boundary.. Solutions to this problem were given

(At this point one can see why Lemma 1 was applied with two different values of X.) On the other hand, lim Y →∞ J (m, n, Y ) = 0 by applying the same lemma to the innermost

Orzeczenia lekarskie, wydane jedynie przez lekarza specjalistę w dziedzinie medycyny sportowej, a w przypadku braku lekarza specjalisty lekarza medycyny

Znale´ z´ c mase ι sfery jednostkowej o ge ι sto´ sci powierzchniowej r´ ownej odleg lo´ sci od osi

Obiad Zupa jarzynowa z makaronem /wywar mięsny drobiowy: kurczak; marchewka, pietruszka, seler, por, kapusta włoska, brukselka, lubczyk, liść laurowy, kminek, ziele

Data lekcji: 27.04.2020 1 godzina lekcyjna- kontynuacja będzie na kolejnej lekcji Wprowadzenie do tematu: kontynuacja tematu ciągi.. Instrukcje do pracy własnej