Selection If in C++
Well, we already know about C++, right. Yup, even windows 95 operating system is built by this software development. So, these days in Informatics University, some students must study about C++. Well at this occasion, we can try to make Selection if C++ with If.., here we are.
/* IF Selection for compare 2 numbers */
#include<'stdio.h>
main()
{
/* Declarations */
float A;
float B;
/*Declarations */
printf("Entri number of A = "); scanf("%f",&A);
printf("Entri number of B = "); scanf("%f",&B);
if (A > B)
printf("The bigest number is : %f", A);
else /* B >= A*/
printf("The Bigest number is : %f", B);
}
Well, to make this program run, of course we have to run it in C++ software development, So, Install it, First. Important!! after the statement #include<'stdio.h>, we must not use 'before --stdio.h--, It just for applying in this Java script, OK, Just try it :).
Created By Ader
#include<'stdio.h>
main()
{
/* Declarations */
float A;
float B;
/*Declarations */
printf("Entri number of A = "); scanf("%f",&A);
printf("Entri number of B = "); scanf("%f",&B);
if (A > B)
printf("The bigest number is : %f", A);
else /* B >= A*/
printf("The Bigest number is : %f", B);
}
Well, to make this program run, of course we have to run it in C++ software development, So, Install it, First. Important!! after the statement #include<'stdio.h>, we must not use 'before --stdio.h--, It just for applying in this Java script, OK, Just try it :).
Created By Ader