We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5c05c2 commit b370d53Copy full SHA for b370d53
Greater number
@@ -0,0 +1,24 @@
1
+/* C Program to Find Largest of Two numbers */
2
+
3
+#include <stdio.h>
4
5
+int main() {
6
+ int a, b;
7
+ printf("Please Enter Two different values\n");
8
+ scanf("%d %d", &a, &b);
9
10
+ if(a > b)
11
+ {
12
+ printf("%d is Largest\n", a);
13
+ }
14
+ else if (b > a)
15
16
+ printf("%d is Largest\n", b);
17
18
+ else
19
20
+ printf("Both are Equal\n");
21
22
23
+ return 0;
24
+}
0 commit comments