Nov 29, 2015 at 3:36pm UTC
I need help figuring out how to use a while loop or an array to not only use two number but mutiple number if neccesary or wanted in the calculations..
//This is what i have so far..
#include <stdio.h>
#include <stdlib.h>
#include<conio.h>
#include<iostream>
#include<cmath>
using namespace std;
#define PI 3.14159265359
int main()
{
int loopcount=0;
int Amountofnumbers;
int Total = 0;
int number;
string x;;
string y;
system ("COLOR 0C");
printf("Welcome to Geek Exclusive Scientific Calculator \n \n ");
printf( " coded by Jenell Joanne James\n\n ");
getch();
cout << "Hey there, How many numbers will you be using for your calculation?"<< endl;
cin>>Amountofnumbers;
cout <<"1 + Addition\n2 - Subtraction\n3 * Multiplication\n4 / Division";
cout <<"\n5 ^ power\n6 sq Squareroot\n7 l Log\n8 Hyperbole Function";
cout <<"\n9 s sin\n10 c cos\n11 t tan";
return 0;
}
Last edited on Nov 29, 2015 at 5:13pm UTC