Belajar – 1 :
//belajar01.cpp
# include
# include
void main()
{
cout<<”Hai. Selamat belajar C++”;
getch();
}
Belajar – 2 :
//belajar2.cpp
# include
# include
void main()
{
clrscr();
cout<<”Ukuran char : “<<<’\n’;
cout<<”Ukuran short : “<<<’\n’;
cout<<”Ukuran int : “<<<’\n’;
cout<<”Ukuran long : “<<<’\n’;
cout<<”Ukuran float : “<<<’\n’;
cout<<”Ukuran double : “<<<’\n’;
cout<<”Ukuran long double : “<<<’\n’;
getch();
}
//belajar01.cpp
# include
# include
void main()
{
cout<<”Hai. Selamat belajar C++”;
getch();
}
Belajar – 2 :
//belajar2.cpp
# include
# include
void main()
{
clrscr();
cout<<”Ukuran char : “<
cout<<”Ukuran short : “<
cout<<”Ukuran int : “<
cout<<”Ukuran long : “<
cout<<”Ukuran float : “<
cout<<”Ukuran double : “<
cout<<”Ukuran long double : “<
getch();
}
Tidak ada komentar:
Posting Komentar