ok friend p4rtzone. this time we will learn together again to make a program using C + + language. and the opportunity this time we will learn to input and execution of the three numbers in the search for the smallest of the three input. what ever the hell that must be provided before we make program execution ...? She was she that we need to know sebeum we make a program, that is we must know first scheme or logic when we enter some input and search for the smallest number of entries that we are.
se for instance there are two numbers of the example A and the B. meal we will make a lath-lath logic first before we enter into pemogramannya. if A B then B is the smallest number. ok ok ok already maksut not understand it ..? low has not been tried on repeated several times so that it can can understand it. well we try to friend p4rtzone how the results of the code from C + + language, the umpppp probably still a little da erorr, and we should find out where erornya ok ok ok
# include
# include
void main ()
{
int a, b, c, the smallest;
cout <<"Knowing the smallest number of three-input" < cout < cout <<"Numbers first =" < cin>> a;
cout <<"Numbers two =" < cin>> b;
cout <<"third Numbers =" < cin>> c;
smallest = a smallest = c cout < cout <<"Numbers smallest =" < getch ();
}
0 comments:
Posting Komentar