C++ program to check the equality of given numbers
kw.cpp
#include<iostream>usingnamespacestd;intmain(){inta,b;cout<<"———————————————————————————————————————————";cout<<"\nProgram to check the equality of given numbers\n";cout<<"———————————————————————————————————————————";cout<<"\nEnter the first number ";cin>>a;cout<<"Enter the second number ";cin>>b;if(a<b){cout<<"\n"<<a<<" is less than "<<b;}elseif(a==b){cout<<"\n"<<a<<" is equal to "<<b;}else{cout<<"\n"<<a<<" is greater than "<<b;}cout<<"\n———————————————————————————————————————————\n";return0;}
Output
kodingwindow@kw:~$ g++ kw.cpp kodingwindow@kw:~$ ./a.out
———————————————————————————————————————————
Program to check the equality of given numbers
———————————————————————————————————————————
Enter the first number -10
Enter the second number 10
-10 is less than 10
———————————————————————————————————————————
kodingwindow@kw:~$
Dear User, Thank you for visitng KodingWindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.
Dear User, We are grateful for your interest in the KodingWindow Android app. We intend to soon make it available on the Google Play Store. Currently, you need to install apk manually. Would you like to get the app? Minimum Requirement(s): Android 10