Guest User

Untitled

a guest
May 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. main()
  3. {
  4. int mag=21, num;
  5. do{
  6. printf("\nintroduza valor\n");
  7. scanf("%d",&num);
  8. if (num<mag)
  9. {
  10. printf("esta abaixo\n");
  11. }
  12. else
  13. {
  14. if (num>mag)
  15. {
  16. printf("esta acima\n");
  17. }
  18.  
  19. }
  20. } while (num!=mag);
  21. printf("Acertou no numero");
  22. }
Add Comment
Please, Sign In to add comment