Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
alxm2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
alxm2024
Commits
c0d91e38
Commit
c0d91e38
authored
Nov 15, 2024
by
Łukasz Adydan
Committed by
Patryk Czarnik
Nov 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zajęcia 07.11
parent
a4f3bf16
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
0 deletions
+71
-0
zmienne.cpp
dzien02/zmienne.cpp
+50
-0
zmienne2.cpp
dzien02/zmienne2.cpp
+21
-0
No files found.
dzien02/zmienne.cpp
0 → 100644
View file @
c0d91e38
#include <iostream>
int
main
()
{
int
liczba
;
//!!
short
liczba2
;
//liczba mniejsza niz int
long
liczba3
;
//liczba wieksza niz int
int
wiek
=
15
;
int
Moj_Wiek
=
14
;
int
wynik
=
wiek
-
Moj_Wiek
;
std
::
cout
<<
wynik
<<
" "
<<
wiek
<<
std
::
endl
;
int
a
=
105
;
int
b
=
20
;
int
wynik_dodawania
=
a
+
b
;
int
wynik_odejmowania
=
a
-
b
;
int
wynik_mnozenia
=
a
*
b
;
int
dzielenie
=
a
/
b
;
std
::
cout
<<
"wynik dodwania "
<<
wynik_dodawania
<<
std
::
endl
;
std
::
cout
<<
"wynik odejmowania "
<<
wynik_odejmowania
<<
std
::
endl
;
std
::
cout
<<
"wynik mnozenia "
<<
wynik_mnozenia
<<
std
::
endl
;
std
::
cout
<<
"wynik dzielenia "
<<
dzielenie
<<
std
::
endl
;
float
pi
=
3.1415286391
;
//!!
float
calkowita
=
10
;
double
pi2
=
3.1415286391
;
std
::
cout
<<
pi2
<<
std
::
endl
;
float
wynik_float
=
pi
*
pi2
;
std
::
cout
<<
wynik_float
<<
std
::
endl
;
char
znak
=
'~'
;
//!!
std
::
cout
<<
znak
<<
std
::
endl
;
bool
warunek
=
false
;
//0 //!!
bool
warunek2
=
true
;
//1
return
0
;
}
dzien02/zmienne2.cpp
0 → 100644
View file @
c0d91e38
#include <iostream>
#include <string>
using
namespace
std
;
int
main
()
{
string
imie
=
"Łukasz"
;
cout
<<
imie
<<
endl
;
string
imie2
=
"Tomek"
;
string
wynik
=
imie
+
imie2
;
cout
<<
wynik
<<
endl
;
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment