#include <iostream>
using namespace std;
int main()
{

int passwoard;

cout << "enter ur passs....";
cin >> passwoard;
return 0;
}

if(passwoard == 100)
cout << "i loveu ";

What is your question?

I think the question is "if I compare a string to an integer, what will happen?"

Or maybe, "Why is the if condition not working?"
It's outside the main loop.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.