Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // asdasd.cpp : Defines the entry point for the console application.
- #include "stdafx.h"
- #define PRAISE "jestes dobrym studentem"
- #define MONTHS 12
- int _tmain(int argc, _TCHAR* argv[])
- {
- /* const int ROWS = 6;
- const int CHARS = 6;
- int row; char ch;
- for (row = 0; row < ROWS; row++)
- {
- for(ch=('A' + row);ch<('A' + CHARS);ch++)
- printf("%C", ch);
- printf("\n", ch);
- }
- return 0;*/
- /* char imie[40];
- printf("Jak sie nazywasz?");
- scanf("%s", imie);
- printf("Dzien dobry, %s. %s\n",
- imie, PRAISE);
- return 0; */
- /*
- int days[MONTHS] = { 31,28,31,30,31,30,31,31,30,31,30,31};
- int index;
- for (index = 0; index < MONTHS; index++)
- printf("Month %2d has %2d days. \n", index +1, days[index]);
- return 0;
- */
- int liczba = 30;
- printf("Wartosc zmiennej liczba: %d\n", liczba);
- printf("Adres zmiennej liczba: %p\n", &liczba);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement