Advertisement
ejdier

Zadanie 24.03.2017

Mar 24th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.88 KB | None | 0 0
  1. // asdasd.cpp : Defines the entry point for the console application.
  2.  
  3. #include "stdafx.h"
  4. #define PRAISE "jestes dobrym studentem"
  5. #define MONTHS 12
  6. int _tmain(int argc, _TCHAR* argv[])
  7. {  
  8.     /*  const int ROWS = 6;
  9.         const int CHARS = 6;
  10.         int row; char ch;
  11.         for (row = 0; row < ROWS; row++)
  12.         {  
  13.             for(ch=('A' + row);ch<('A' + CHARS);ch++)
  14.                 printf("%C", ch);
  15.                 printf("\n", ch);
  16. }
  17.             return 0;*/
  18.  
  19. /*  char imie[40];
  20.     printf("Jak sie nazywasz?");
  21.     scanf("%s", imie);
  22.     printf("Dzien dobry, %s. %s\n",
  23.         imie, PRAISE);
  24.     return 0; */
  25. /*
  26.     int days[MONTHS] = { 31,28,31,30,31,30,31,31,30,31,30,31};
  27.     int index;
  28.     for (index = 0; index < MONTHS; index++)
  29.         printf("Month %2d has %2d days. \n", index +1, days[index]);
  30.     return 0;
  31.     */
  32.  
  33.     int liczba = 30;
  34.     printf("Wartosc zmiennej liczba: %d\n", liczba);
  35.     printf("Adres zmiennej liczba: %p\n", &liczba);
  36.     return 0;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement