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