Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Khisby Al Ghofari, 06.2017.1.06852, Kelas B
- #include <iostream>
- using namespace std;
- int main(){
- int n;
- char huruf='a';
- cout << "Masukkan angka";
- cin >> n;
- for(int j=1;j<=n;j++){
- for(int i=1;i<j;i++){
- cout<<huruf;
- huruf++;
- }
- cout<<"\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement