Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 6
- #include <stdio.h>
- int main()
- {
- double a;scanf("%lf",&a);
- printf("%0.2f\n", a);
- }
- 7
- #include <stdio.h>
- int main()
- {
- float fX;
- scanf("%f", &fX);
- printf("%e", fX);
- }
- 8
- #include <stdio.h>
- int main()
- {
- float ilosc,dzielenie=48,wynik,cukier=1.50,maslo=1.00,maka=2.75;
- scanf("%f",&ilosc);
- wynik=ilosc/dzielenie;
- printf("Ilość cukru: %0.2f\nIlość masła: %0.2f\nIlość mąki: %0.2f\n",wynik*cukier,wynik*maslo,wynik*maka);
- }
- 9
- #include <stdio.h>
- int main()
- {
- printf("Twinkle, twinkle, little star,\n");
- printf(" How I wonder what you are!\n");
- printf(" Up above the world so high,\n");
- printf(" Like a diamond in the sky.\n");
- printf("Twinkle, twinkle, little star,\n");
- printf(" How I wonder what you are!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement