Advertisement
ppupil2

Q01-PRF192-PE-31.03

Mar 31st, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 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 x, a;
  11.     scanf("%f", &x);
  12.     a = cos(x);
  13.  
  14.  
  15.  
  16.  
  17.   // Fixed Do not edit anything here.
  18.   printf("\nOUTPUT:\n");
  19.   //@STUDENT: WRITE YOUR OUTPUT HERE:
  20.     printf("%.6f", a);
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.   //--FIXED PART - DO NOT EDIT ANY THINGS HERE
  31.   printf("\n");
  32.   system ("pause");
  33.   return(0);
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement