SHARE
TWEET

niewiem2

a guest Dec 3rd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <math.h>
  3. main()
  4. {
  5.     int a;
  6.     printf( "Podaj liczbe z zakresu 0-1000: " );
  7.     scanf( "%d", & a );
  8.     struct element
  9.     {
  10.         int liczbowo;
  11.         const char * slownie;
  12.     };
  13.     const struct element slownie[] = {
  14.         { 1000, "tysiac" },
  15.         { 900, "dziewiecset" },
  16.         { 800, "osiemset" },
  17.         { 700, "siedemset" },
  18.         { 600, "szescset" },
  19.         { 500, "piecset" },
  20.         { 400, "czterysta" },
  21.         { 300, "trzysta" },
  22.         { 200, "dwiescie" },
  23.         { 100, "sto" },
  24.         { 90, "dziewiecdziesiat" },
  25.         { 80, "osiemdziesiat" },
  26.         { 70, "siedemdziesiat" },
  27.         { 60, "szescdziesiat" },
  28.         { 50, "piecdziesiat" },
  29.         { 40, "czterdziesci" },
  30.         { 30, "trzydziesci" },
  31.         { 20, "dwadziescia" },
  32.         { 10, "dziesiec" },
  33.         { 9, "dziewiec" },
  34.         { 8, "osiem" },
  35.         { 7, "siedem" },
  36.         { 6, "szesc" },
  37.         { 5, "piec" },
  38.         { 4, "cztery" },
  39.         { 3, "trzy" },
  40.         { 2, "dwa" },
  41.         { 1, "jeden" },
  42.         { 0, "zero" },
  43.     };
  44.     return 0;
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top