Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <conio.h>
- #include <stdio.h>
- int main()
- {
- int cyfra[2][2];
- int suma = 0;
- printf("Podaj Cyfre");
- for(int i=0; i<2; i++)
- for (int j = 0; j < 2; j++)
- {
- scanf("%d", &cyfra[i][j]);
- }
- for (int i = 0; i<2; i++)
- for (int j = 0; j < 2; j++)
- {
- printf("%d", cyfra[i][j]);
- suma = suma + cyfra[i][j];
- }
- printf("\n%d", suma);
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement