Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <limits.h>
- int main(){
- int min = INT_MAX, max = INT_MIN, aktualis, db = 0, seged = 0;
- while(scanf("%d", &aktualis) != EOF){
- db = db + 200;
- if(aktualis < min){
- min = aktualis;
- }else if(aktualis > max){
- max = aktualis;
- }
- seged = max - min;
- }
- if(db < 400){
- return 0;
- }
- printf("%d %d\n", seged, db - 200);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement