diff --git a/Largest of 2 no.s b/Largest of 2 no.s new file mode 100644 index 0000000..4ba7a6a --- /dev/null +++ b/Largest of 2 no.s @@ -0,0 +1,18 @@ +#include +int main() +{ + int num1, num2; + printf("Enter 2 integers"); + scanf("%d%d" , &num1 ,&num2); + if (num1 > num2) + { + printf ("largest no. is %d", num1); + } + else + { + printf("largest no. is %d", num2); + } + + return 0; + + }