thanks to BillyTKid. My problem solved.
Type: Posts; User: yeohwl91
thanks to BillyTKid. My problem solved.
how should i write for
cout << setiosflags( ios::fixed | ios::showpoint )
<< "The total retail value was: " << setprecision( 2 )
<< total << endl;
my lecturer ask us to do c program,not c++
is there anyway to write the c program have the same function with iostream and iomanip?
I using code::block and MinGW
#include <iostream>
using namespace std; //Added
//
#include <iomanip>
int main()
{
#include <stdio.h>int num1;
void a()
{
printf( "%f\n",3.40*num1 );
}
void b()
{
printf( "%f\n",11.30*num1 );
}
void c()
print out Enter Calculation
scan the maths expression
if operation is addition
then print out number 1+number 2=answer
else if operation is substraction
then print out number 1-number 2=answer...
scanf (mathematical expression)
if (calculation is not division)then (go to the calculating and round off value into 2 decimal places)
if (calculation is division)
then (check whether denominator...
i not really understand what is pseudo code, but i try to write it. Help me check whether correct or not, thanks a lot.
input (mathematical expression)
if calculation is not division
then go...
i have no idea how to make it bigger, because i just print screen from the microsoft word. please download below attachment and help me check.
10913
help me to check whether my flowchart have problem?
thanks...
#include <stdio.h>
int main()
{
iceaway, thanks so much!i got it!
#include <stdio.h>
int main()
{
float num1, num2;
char operation;
below is my calculator programming.I want to make it show "maths error" when any number divided by 0, but i get any number +,-,*,/ by 0 also get maths error.I need u guys to correct my...
i'm new to the C programming. So, i need u guys help. i want to write a program of a calculator which can solve addition,subtraction, division and multiply. however, 0 cannot divide by any number....