Tutorial membuat program huruf "A"
Hallo sobat sedotan , Kali ini saya akan menshare cara membuat huruf "A" seperti di gambar di bawah ini.
Berikut adalah Listingcode nya :)
"
#include <conio.h>
#include <iostream.h>
main(){
int i ,k;
for(i=1 ; i<=5 ; i++)
{
for (k=1 ; k<=5; k++)
{
if (i==1 ||i==3 ||k==1 ||k==5)
cout<<"*";
else cout<<" ";
}
cout<<endl;
}
getch();
return 0;
}
"
Selamat mencoba :)
*hilangkan tanda "
Tutorial membuat program huruf "A"
Reviewed by Unknown
on
July 12, 2017
Rating:



No comments