We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Introduction
- Functions in C
- Discussions
Functions in C
Functions in C
Sort by
recency
|
797 Discussions
|
Please Login in order to post a comment
int g1,g2,g;
Using qsort
include
using namespace std;
int highvalue() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d);
}
int main() { cout << highvalue() << endl; return 0;
include
/* C program to find max of four numbers */ int max_of_four(a,b,c,d){ if(a>b && a>c && a>d){ return a; } else if (b>a && b>c && b>d) { return b; } else if (c>a && c>b && c>d) { return c; } else { return d; } }
int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); int ans = max_of_four(a, b, c, d); printf("%d", ans);
}