Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void) {
- float valor;
- printf("Digite um valor inteiro: \n");
- scanf("%f", &valor);
- if (valor > 0) {
- printf("O número é positivo\n");
- }
- if (valor < 0) {
- printf("O valor é negativo!\n");
- }
- if (valor == 0) {
- printf("O valor é neutro!\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement