| Код | #include <iostream.h>
struct drob{ int chis; int znam;};
void summ(int a, int b); void raznost(int a, int b); void chastnoe(int a, int b); void proizvedenie(int a, int b);
int main(){ int x, y, x1, y1; cout << "Введите числитель и знаменатель первой дроби: "; cin >> drob.chis >> drob.znam; summ(drob.chis, drob.znam); raznost(drob.chis, drob.znam); chastnoe(drob.chis, drob.znam); proizvedenie(drob.chis, drob.znam); cout << "Введите числитель и знаменатель второй дроби: "; cin >> drob.chis >> drob.znam; summ(drob.chis, drob.znam); raznost(drob.chis, drob.znam); chastnoe(drob.chis, drob.znam); proizvedenie(drob.chis, drob.znam); return 0;}
void summ(int a, int b){ //your code }
void raznost(int a, int b){ //your code }
void chastnoe(int a, int b){ //your code }
void proizvedenie(int a, int b){ //your code }
|
|