/* ---------------- Hide the NavBar ----------------------------- */ #b-navbar{ height:0px !important; visibility: hidden !important; } /* --------------------------------------------------------------- */
Send As SMS
+
Daniel's homework<body>

Thursday, July 06, 2006

#include "iostream.h"

main()
{
float number1=0;
float number2=0;
float answer=1;
int i;
const int maxchar = 1000;
char type;
char quit;
for(i=0;i<1ooo;i++)
{

cout<<"Type in a number:\n";
cin>> number1;

cout<<"Type in another number";
cin>> number2;


cout<<"Type + or add to add\n"<< endl;
cout<<"Type - subtract to subtract\n"<< endl;
cout<<"Type * or multiply to multiply\n"<< endl;
cout<<"Type / or divide to divide\n"<< endl;

cin>>type;

if(type++'+')
answer=number1+number2;

if(type=='-')
answer=number1-number2;

if(type=='*')
answer=number1*number2;

if(type=='/')
answer=number1/number2;

0 Comments:

Post a Comment

<< Home

###


Welcome:

:: All about me ::

[Name] Daniel Myers
[Age] Old enough!
[School] HTMMA
[D.O.B] Nov. 25 Some year!

:: Links ::

google

Mrs. Morton's Blog

Mrs. Morton's DP (My Teacher)

:: Other Homework Blogs ::

Garret's

Mirit's

Harshal's

Julia M.'s

James'

Willy's

Axel's

Jenn's

Fernando's

Andrew's

Avi's

Lydia's

Ashley's

Gerardo's

Chris'

Jacquelyn's

Lauren's

Lindsey's

Colin's

Dakota's

Rebeca's

Jim's

Serena's

Dannielle's

Saul's

Kevin's

Deborah's

Julia W.'s

Cecilia's

Sally's

Absalom's

Sam's

Alicia's

Alex's

Jackson's

Briseyda's

Jacalyn's

Cassie's

D.J.'s

Grant's

Cherish's

Arman's

Mia's

Elias'

Jane's


Thank you for coming to my Blog. I hope you like it! I had a really good time making it and I am still adding more and more each day. (I actually made it by taking bits and parts from the places scrolling by below.) Visit me at AT MY WEBSITE <--------

Here are tributes to the people whose sites I used to shape my blog:


A really nice blogskin place

:: Archives ::


:: Credits ::

- - enigmadan