We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f596c9b commit 6629c09Copy full SHA for 6629c09
0x03-debugging/2-largest_number.c
@@ -7,6 +7,7 @@
7
* @c: third integer
8
* Return: largest number
9
*/
10
+
11
int largest_number(int a, int b, int c)
12
{
13
int largest;
0x03-debugging/2-main.c
@@ -0,0 +1,23 @@
1
+#include <stdio.h>
2
+#include "main.h"
3
4
+/**
5
+* main - prints the largest of 3 integers
6
+* Return: 0
+*/
+int main(void)
+{
+ int a, b, c;
+ int largest;
14
+ a = 972;
15
+ b = -98;
16
+ c = 0;
17
18
+ largest = largest_number(a, b, c);
19
20
+ printf("%d is the largest number\n", largest);
21
22
+ return (0);
23
+}
0 commit comments