هنا سنجد اختلاف في مثال If بإضافة Else إلي جملة IF :
#include<iostream.h>
int main()
{
int x;
cout<<"\n Enter a number: ";
cin>>x;
if(x>100)
cout<<"That number is greater than 100\n";
else
cout<<"That number is not greater than 100\n";
return 0;
}