if-else in c++
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int a=35;
int b=46;
int i;
for(i=0;i<=10;i++)
cout<<setw(5)<<a<<endl;
if(a==b)
cout<<"Both are same";
else
cout<<"Both are different";
return 0;
}
Comments
Post a Comment