Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int n,j,i,angka;
- n=10;
- j=1;
- i=1;
- char huruf;
- for (j<=n;j++;)
- {angka=1;
- huruf='a';
- for(i<=j;i++;)
- {
- if(i%2 !=0)
- {
- cout<<angka;
- angka++;
- }
- else
- {
- cout<<huruf;
- huruf++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement