Skip to content

Commit

Permalink
Doge
Browse files Browse the repository at this point in the history
  • Loading branch information
heyyfurqan authored Sep 15, 2022
1 parent a0f097e commit feaf1d8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions GreaterNumber.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// GreaterNumber.cpp : Program to find greater of two numbers using conditional statements

#include <iostream>
using namespace std;

int main()
{
int a, b;
cout << "Enter value of a and b: " << endl;
cin >> a >> b;
if (a > b)
{
cout << "a is greater than b!" << endl;
}
else
{
cout << "b is greater than a!" << endl;
}
return 0;
}

0 comments on commit feaf1d8

Please sign in to comment.