URI Problem 1037 – Interval solution( Bangla ) | C language

** Before watching the solution please make sure that you have tried enough **

#include <stdio.h>

int main()
{
    float n;
    scanf("%f", &n);
    if (n >= 0.00 && n<= 25.0000){
        printf("Intervalo [0,25]\n");
    }
    else if (n>=25.00001 && n<=50.000000){
        printf("Intervalo (25,50]\n");
    }
    else if (n>=50.0000001 && n<=75.000000){
        printf("Intervalo (50,75]\n");
    }
    else if (n>=75.0000001 && n<=100.000000){
        printf("Intervalo (75,100]\n");
    }
    else printf("Fora de intervalo\n");
    return 0;
}

 

You can find video explanation of this solution in our YouTube channel. You will find the YouTube channel link in the top right corner.
Like our Facebook page and SUBSCRIBE to our YouTube channel.
Stay connected.

If you face any problem, let me know in the comment section.

Leave a Comment