Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x = 5;
- float z = 7.2;
- char y = 'y';
- double liczba = 3.14;
- bool zmienna = 1;
- string tekst = "napis" ;
- cout<<"Zmienna typu int wynosi : "<<x<<endl;
- cout<<"Zmienna typu float wynosi : "<<z<<endl;
- cout<<"Zmienna typu char wynosi : "<<y<<endl;
- cout<<"Zmienna typu double wynosi : "<<liczba<<endl;
- cout<<"Zmienna typu bool wynosi : "<<zmienna<<endl;
- cout<<"Zmienna typu string wynosi : "<<tekst<<endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment