Advertisement
Fran0031

Ejercicio 1 Boletín 2

Dec 23rd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1.  #include <stdio.h>
  2.  
  3. int main() {
  4. float num;
  5. printf("Introduce un número:");
  6. scanf("%f",&num);
  7.  
  8. if (num>=0){
  9. printf("Número positivo\n");} else {
  10.     printf("Número negativo\n");
  11. }
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement