ppupil2

Q09-PRF192-PE-31.03

Mar 31st, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <math.h>
  5.  
  6.  
  7. int main() {
  8.   system("cls");
  9.   //INPUT - @STUDENT:ADD YOUR CODE FOR INPUT HERE:
  10.     float c;
  11.     scanf("%f", &c);
  12.  
  13.  
  14.  
  15.  
  16.   // Fixed Do not edit anything here.
  17.   printf("\nOUTPUT:\n");
  18.   //@STUDENT: WRITE YOUR OUTPUT HERE:
  19.     printf("%.6f", fabs(c)); //@STUDENT: EDIT THIS LINE TO HAVE DESIRED OUTPUT
  20.  
  21.  
  22.  
  23.   //--FIXED PART - DO NOT EDIT ANY THINGS HERE
  24.   printf("\n");
  25.   system ("pause");
  26.   return(0);
  27. }
Add Comment
Please, Sign In to add comment