Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- using namespace std;
- float b;
- float e;
- float f;
- void napisz()
- {
- puts("podaj tekst: ");
- char tekst[30];
- gets(tekst);
- cout<<"tekst ktory podales to: "<<tekst;
- puts("\n");
- }
- float kolo(float a)
- {
- printf("Obwód to : %f ", 2*3.14*a);
- puts("\n");
- printf("Pole to: %f ", a*a*3.14);
- puts("\n");
- return a;
- }
- float kalk(float c,float d)
- {
- printf("Dodawanie : %f \n",c+d);
- printf("Odejmowanie : %f \n",c-d);
- printf("Dzielenie : %f \n",c/d);
- printf("Mnożenie : %f \n",c*d);
- }
- int main(int argc, char *argv[])
- {
- napisz();
- puts("podaj promien: ");
- cin>>b;
- puts("\n");
- kolo(b);
- puts("podaj 1 liczbe: \n");
- cin>>e;
- puts("podaj 2 liczbe: \n");
- cin>>f;
- kalk(e,f);
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Add Comment
Please, Sign In to add comment