Kacper_Michalak

Zadanie 2

Oct 27th, 2020 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int x = 5;
  8.     float z = 7.2;
  9.     char y = 'y';
  10.     double liczba = 3.14;
  11.     bool zmienna = 1;
  12.     string tekst = "napis" ;
  13.  
  14.     cout<<"Zmienna typu int wynosi : "<<x<<endl;
  15.      cout<<"Zmienna typu float wynosi : "<<z<<endl;
  16.       cout<<"Zmienna typu char wynosi : "<<y<<endl;
  17.        cout<<"Zmienna typu double wynosi : "<<liczba<<endl;
  18.         cout<<"Zmienna typu bool wynosi : "<<zmienna<<endl;
  19.          cout<<"Zmienna typu string wynosi : "<<tekst<<endl;
  20.  
  21.     return 0;
  22. }
  23.  
Add Comment
Please, Sign In to add comment