Advertisement
ThaisAlmeida

2011.2 questรฃo 1

Jul 28th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5. void LEITURA(int n){
  6.  
  7. do{
  8. printf("Digite um valor para n entre 2 e 500: ");
  9. scanf("%d",n);
  10.  
  11. if(!2<= n <=500){
  12.  
  13.     printf("Numero invalido!");
  14. }
  15. }while(2<= n <=500);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement