Advertisement
Schknheit

Untitled

Mar 18th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(){
  5.    
  6.     float xv,a,b;
  7.    
  8.     printf("Entre com os valores\n");
  9.     scanf("%f%f",&a,&b);
  10.    
  11.     if(a>0){
  12.         xv = b/(2*a);
  13.         printf("O valor minimo e: %f", xv);
  14.     }
  15.    
  16.     else{
  17.         xv = b/(2*a);
  18.         printf("O valor maximo e: %f", xv);
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement