/* ---------------- Hide the NavBar ----------------------------- */ #b-navbar{ height:0px !important; visibility: hidden !important; } /* --------------------------------------------------------------- */
Thursday, July 06, 2006main() { 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; |
Welcome: :: All about me :: [Name] Daniel Myers[Age] Old enough! [School] HTMMA [D.O.B] Nov. 25 Some year! :: Links ::
google :: Other Homework Blogs ::
Garret's A really nice blogskin place :: Archives :: :: Credits ::
-
|

0 Comments:
Post a Comment
<< Home