Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.86 KB | None | 0 0
  1. 6
  2. #include <stdio.h>
  3. int main()
  4. {
  5.     double a;scanf("%lf",&a);
  6.     printf("%0.2f\n", a);
  7. }
  8. 7
  9. #include <stdio.h>
  10.  
  11. int main()
  12. {  
  13.     float fX;
  14.     scanf("%f", &fX);
  15.     printf("%e", fX);
  16.        
  17. }
  18. 8
  19. #include <stdio.h>
  20.  
  21. int main()
  22. {  
  23.          float ilosc,dzielenie=48,wynik,cukier=1.50,maslo=1.00,maka=2.75;
  24.          scanf("%f",&ilosc);
  25.          wynik=ilosc/dzielenie;
  26.          printf("Ilość cukru: %0.2f\nIlość masła: %0.2f\nIlość mąki: %0.2f\n",wynik*cukier,wynik*maslo,wynik*maka);
  27.      
  28.  
  29. }
  30. 9
  31. #include <stdio.h>
  32.  
  33. int main()
  34. {
  35.      printf("Twinkle, twinkle, little star,\n");
  36.     printf("    How I wonder what you are!\n");
  37.     printf("        Up above the world so high,\n");
  38.     printf("        Like a diamond in the sky.\n");
  39.     printf("Twinkle, twinkle, little star,\n");
  40.     printf("    How I wonder what you are!");
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement