Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- using namespace std;
- void wyswietl(int lcal, string litera, unsigned long wyraz, char znak, float zm)
- {
- if(znak > 0)
- {
- cout << "pierwiastek: " << sqrt( znak ) << endl;
- }
- else
- {
- cout << "kwadrat liczby: " << znak*2 << endl;
- }
- for(int i=0; i < lcal; i++)
- {
- cout << litera << endl;
- }
- cout << wyraz << endl;
- cout << wyraz << endl;
- cout << wyraz << endl;
- cout << zm*12 << endl;
- }
- int main(int argc, char** argv)
- {
- int c;
- string l;
- unsigned long u;
- char z;
- float p;
- cout << "litera: " << endl;
- cin >> l;
- cout << "wyraz: " << endl;
- cin >> u;
- cout << "znak: " << endl;
- cin >> z;
- cout << "zmiennoprzecinkowa: " << endl;
- cin >> p;
- cout << "liczba calkowita: " << endl;
- cin >> c;
- void wyswietl(int lcal, string litera, unsigned long wyraz, char znak, float zm);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement