1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
/*This program reads in two sets of integers from user,
then computes and prints the sums, differences, and quotients
for corresponding values in the two arrays*/
using namespace std;
const int size = 1000;
#include <iomanip>
#include <cstdlib>
#include <iostream>
#include <fstream>
void input (int data[size], int values);
void do_sums (int a [size], int b [size], int s [size], int values);
void do_differences (int a [size], int b [size], int d [size], int values);
void do_products (int a [size], int b [size], int p [size], int values);
void do_quotients (int a [size], int b [size], int q [size], int values);
void print (int a [size], int b [size], int answer [size], char op, int values);
int sum_of_all (int data1 [size], int data2 [size], int values);
|