Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <ctype.h>
- #include <math.h>
- int main(int argc, char * argv[]) {
- int reden;
- scanf("%d", &reden);
- float dolna, gorna;
- scanf("%f%f", &dolna, &gorna);
- if(reden == 1) {
- if(dolna > 140 || gorna < 140) {
- }
- else {
- if(140 - dolna < gorna - 140) {
- printf("dolna\n");
- }
- else {
- printf("gorna\n");
- }
- }
- }
- else if(reden == 2) {
- if(dolna > 7 || gorna < 7) {
- }
- }
- scanf("%d", &reden);
- scanf("%f%f", &dolna, &gorna);
- if(reden == 1) {
- if(dolna > 140 || gorna < 140) {
- }
- else {
- if(140 - dolna < gorna - 140) {
- printf("dolna\n");
- }
- else {
- printf("gorna\n");
- }
- }
- }
- else if(reden == 2) {
- if(dolna > 7 || gorna < 7) {
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement