Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "3.26\n" << endl;
- int tablica[4][3];
- int liczba=1;//bo od 1 zaczynamy ciag
- for(int i=0;i<4;i++)
- {
- for (int j=0;j<3;j++)
- {
- tablica[i][j]=liczba;
- if(j!=2)
- {
- liczba+=2;
- }
- }
- liczba++;
- }
- for(int i=0;i<4;i++)
- {
- for (int j=0;j<3;j++)
- {
- cout<<tablica[i][j]<<"\t";
- }
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement