int max_of_four(int a, int b, int c, int d){ int ans; if (a > b && a > c && a > d) ans = a; else if (b > c && b > d) ans = b; else if (c > d) ans = c; else ans = d; return ans; }
#include int main (void) { int a, b; printf("dwse mou dio akeraious arithmous: \n"); scanf("%d %d", &a, &b); printf("oi arithmoi poy edwses einai: %d kai %d", a, b); return 0; }
Create a class complex that contains two double data members. Overload +, -, and * arithmetic operators, so that they can operate on the object of complex. Then find the expression a-b*c + d (where a, b, c, and d are complex objects).
Write a function that accepts as input two sets represented as lists and produces at output a list representing the intersection of the two sets. Example: >(union ’(a b c d e f) ’(a c f e x y)) ; Value: (a b c d e f x y)