Archive for the ‘C++’ Category

Membuat Kumpulan Rumus Matematika Dengan C++

This item was filled under [ C++, Coding ]

Anda pernah bingung dengan matematika? Tidak tahu rumusnya? Sekarang saya ingin mengajak anda membuat program kumpulan rumus matematika dengan C++. berikut kodenya.

Continue reading...

Just Simple Guess Game

This item was filled under [ C++, Coding ]

#include <iostream.h>
int main()
{
int myBirthday = 13;
int guess;
cout << “Please guess the day of my birth, from 1 to 31″<<endl;
cout << “Enter your guess please”;
cin >> guess;
if (guess < 0)
{
cout << “Months don’t have negative day, Einstein!!”<<endl;
}
else if (guess>31)
{
cout << “Pretty long month, genius!!”>>endl;
}
else if (guess == myBirthday)
{
cout << “Incredible,, you are right. Congratulations..”<<endl;
}
else if (guess [...]

Continue reading...