initial
This commit is contained in:
commit
2802401eee
79 changed files with 2650 additions and 0 deletions
14
1sem/programming basics/z1/3.cpp
Normal file
14
1sem/programming basics/z1/3.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// pb_z1_3.cpp
|
||||
// Горбацевич Андрей
|
||||
#include <stdio.h>
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
double d;
|
||||
printf("d >>>");
|
||||
scanf("%lf", &d);
|
||||
d = ((int)(abs(d) * 10)) % 10;
|
||||
printf("%d", (int)d);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue