File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+ #include < cmath>
3
+ using namespace std ;
4
+ int main ()
5
+ {
6
+ double x1, y1, x2, y2;
7
+ cin >> x1 >> y1 >> x2 >> y2;
8
+ cout << sqrt ( (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) );
9
+ return 0 ;
10
+ }
Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+ using namespace std ;
3
+ int main ()
4
+ {
5
+ int x, y;
6
+ cin >> x >> y;
7
+ if (x % 7 == 0 && y % 7 == 0 ) cout << " true" ;
8
+ else cout << " false" ;
9
+ return 0 ;
10
+ }
Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+ #include < cmath>
3
+ using namespace std ;
4
+ int main ()
5
+ {
6
+ double x, y, z, p, S;
7
+ cin >> x >> y >> z;
8
+ p = (x + y + z) / 2 ;
9
+ S = sqrt (p * (p - x) * (p - y) * (p - z));
10
+ cout << S;
11
+ return 0 ;
12
+ }
You can’t perform that action at this time.
0 commit comments