Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.   float valor;
  5.  
  6.   printf("Digite um valor inteiro: \n");
  7.   scanf("%f", &valor);
  8. if (valor > 0) {
  9.   printf("O número é positivo\n");
  10. }
  11. if (valor < 0) {
  12.   printf("O valor é negativo!\n");
  13. }
  14. if (valor == 0) {
  15.   printf("O valor é neutro!\n");
  16. }
  17.   return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement