Advertisement
Igor2909

Untitled

Dec 27th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. main()
  5. {
  6.     int N;
  7.     printf("Quanti numeri vuoi analizzare?: ");
  8.     scanf("%d", &N);
  9.     while(N>0)
  10.     {
  11.         int a;
  12.         printf("\nInserisci un numero:\n ");
  13.         scanf("%d", &a);
  14.         a = abs(a);
  15.         printf("Il valore assoluto e' : %d\n", a);
  16.         N--;
  17.     }
  18.     system("PAUSE");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement