nikolas_serafini

Lista 2 - Exercício 8

May 24th, 2013
39
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. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     float num;
  7.  
  8.     printf("Entre com o valor : \n"); scanf("%f",&num);
  9.     if ((num>-10)&&(num<=30))
  10.     {
  11.         printf("O numero esta dentro do intervalo desejado!\n");
  12.     }
  13.     else
  14.     {
  15.         printf("O numero nao esta dentro no intervalo!\n");
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment