class FOP smlm best.. bek bek nantok, tros na tekelua bijik mate niyy.. d sbbkn rmay ag student yg lom dtg, miss ckp dy tanak aja dlu.. nt kne ulng byk kaly penat.. hmm so miss tye nk wtper.. egt na settle pasal blog niyy.. cp yg ta ciap, cp yg tade, miss suh wt.. tp mslhnye tenet cosmo lak mslh.. tataw la knp.. so na on9 pon taley.. at last miss bg soklan sal last week nye chapter.. miss bg 2 soklan n ade 2 group.. 1 soklan, 1 group.. susa jgk soklan dy.. aq nan tataw pape, msok lam group kak syezza.. hehe group aq ade 4 ke 5 org tahh.. pastuh kitorg bincang sme sme.. sme sme blur, sme sme ngek, sme sme ngok tp sme sme tetap try wt.. sala ke btol, tuh cite blkng.. jnj kite da try !! (: haa mse ktorng nga pning na wt jwpn, student pon da rmay yg dtg.. so miss bg lg 1 soklan utk dorng.. mkne nye, ade 3 soklan n ade 3 group.. hmm nk tgok tak soklan yg group aq kne wt?? haa tgok r kt bwh niy k, aq bg nan jwpn skly.. cehh ! hahaha
Question
Multiply and divide two FLOAT numbers with using the formula below:
multiply=num1*num2
divide=num2/num1
Answer
FLOW CHART :
#include<iostream.h>// header
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="<<multiply;
//formula
divide=num2/num1;
//output
cout<<"divide="<<divide;
return 0;
}//close curly bracket
//end body
niy jwpn yg btol,miss da tande.. yg sala mls nak tnjuk.. wt malu kaum jer.. hahaha.. tp ok la jgk sbb yg flow chart tuh btol sume.. tp smpay coding je lemah smngat.. sbb lom pena wt ag.. kt situh la yg salu wt mate ktorg rabak na korek jwpn.. sedeyy tw takk.. group aq byk wt sala.. byk yg ta lengkap.. lupe simbol semikolon laa, declare variable ta lengkap la, input ta lengkap la.. adehhh malu malu.. tp tape la, blaja dr ksilapan lg sng na egt kot.. insyallah byk kly wt, da tade 1 pon sala.. haha amiiinn :D