Arini Ms Ayuni ada bagi exercise bgi setiap group 1 soklan...
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 num 1;
float num 2;
float multiply;
float divide;
//input 1
cout<<"enter num 1";
cin>>num 1;
//input 2
cout<<"enter num 2";
cin>>num 2;
//formula
multiply=num1*num2;
//output
cout<<"multiply="<<multiply;
//formula
divide=num2/num1;
//output
cout<<"divide="<<divide;
return 0;
}//close curly bracket
//end body