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

int passwoard;

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

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

Recommended Answers

All 3 Replies

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, learning, and sharing knowledge.