Advertisement
neistadt

Задача C.1.0.1. Середина отрезка

Sep 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.14 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(){
  4.     int a;
  5.     int b;
  6.     scanf("%d", &a);
  7.     scanf("%d", &b);
  8.     int k = (a+b)/2;
  9.     printf("%d\n", k);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement