i'm really having a problem on how to start my homework.
this is regarding to my first post (http://www.daniweb.com/forums/thread132760.html)
thanks to the one who answered, i realized that i needed to use arrays on this. i realized that i needed to solve the problems manually, meaning that i have to do operations in longhand.
the problem is i really don't know how i can code the array arithmetic part(+, -, /, *, sqrt)
the only thing i managed to do first is how i can input.
this is the part that i have started yet. i believe its still just a little 1% of the total program here.
#include <stdio.h>
int main(void)
{
int array1[41], array2[41], counter;
char oper;
printf("This program is a manual calculator.\n");
printf("It operates addition, subtraction, multiplication, division, and square root.\n");
printf("Use symbols (+, -, *, /, #) to add, subtract, multiply, divide, and to find square root of a number.\n");
printf("Enter first number(up to 40 digits): \n");
gets()
printf("Enter operation (+, -, *, /, #): \n");
scanf("%c", &oper);
switch (oper)
{
case '+':
{
printf("Enter second number (up to 40 digits): \n");
gets()
please, anyone help me how i'll get started? thanks very much!