mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-10-28 11:10:38 +01:00
notatki
This commit is contained in:
9
uczelnia/2_semestr/programowanie/laby/lab2/zad2.cpp
Normal file
9
uczelnia/2_semestr/programowanie/laby/lab2/zad2.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::cout << 5 / 2 << '\n'; // 2
|
||||
std::cout << 5 / 2.0 << '\n'; // 2.5
|
||||
int x = 7;
|
||||
double y = 2;
|
||||
std::cout << x / y << '\n'; // 3
|
||||
}
|
||||
Reference in New Issue
Block a user