oleh :
arif zainurrohman
#include <iostream>
#include <stdio.h>
using namespace std;
int main () {
int i,j;
char k,m;
for (i=1;i<=5;i++) {
k ='b';
m ='d';
for (j=1;j<=i;j++)
if (i==2)
cout << k << " ";
else if (i==4)
cout << m << " ";
else
cout << j << " ";
cout << endl ;}
return 0;
}
#include <stdio.h>
using namespace std;
int main () {
int i,j;
char k,m;
for (i=1;i<=5;i++) {
k ='b';
m ='d';
for (j=1;j<=i;j++)
if (i==2)
cout << k << " ";
else if (i==4)
cout << m << " ";
else
cout << j << " ";
cout << endl ;}
return 0;
}
Ibu Kota, 1 Mei 2015
akhukumfillah arifzainurrohman
0 komentar:
Posting Komentar