Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- float n;
- printf("Introduzca un número: ");
- scanf("%f", &n);
- if (n >= 0){
- printf("El número es positivo");
- } else {
- printf("El número es negativo");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment