Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //segitiga huruf, vyn.
- #include <iostream>
- using namespace std;
- int main()
- {
- int L;
- cout<<"baris :";cin>>L;
- for (int i = 1; i <= L; i++)
- {
- for (int j = L; j > i; j--)
- cout<<" ";
- int j;
- for (j = 1; j<= i; j++)
- {char huruf = (char) j + 64;cout<<huruf;}
- for (int k = j-2; k>=1; k--)
- {char huruf = (char) k + 64;cout<<huruf;}
- cout<<endl;
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement