Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main(){
- float xv,a,b;
- printf("Entre com os valores\n");
- scanf("%f%f",&a,&b);
- if(a>0){
- xv = b/(2*a);
- printf("O valor minimo e: %f", xv);
- }
- else{
- xv = b/(2*a);
- printf("O valor maximo e: %f", xv);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement