Daisypath Anniversary tickers

Daisypath Anniversary tickers

Saturday, March 26, 2011

SOKLAN MENGUJI

Mase soklan nih.. ehem.. aku mcm bese la... lambat masok class.. tp still ramai yg lom masok class.. bebudak len da stat wat soklan.. then aku pon menyelit le kt sbelah yani.. hukhukhuk.... err.. ni jawapan tok soklan uh....

Soklannye...

Multiply and divide two FLOAT numbers with using the formula below:
multiply=num1*num2
divide=num2/num1

jawapannye pulak...

Flow chat





















#include
main()// start body
{// open curly bracket
//declare variable
float num1;
float num2;
float multiply;
float divide;
//input 1
cout<<"enter num 1"; cin>>num1;
//input 2
cout<<"enter num 2"; cin>>num2;
//formula
multiply=num1*num2;
//output
cout<<"multiply="<//formula
divide=num2/num1;
//output
cout<<"divide="<return 0;
}//close curly bracket
//end body

No comments:

Post a Comment