0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
[CODE]#include <iostream> using namespace std; int main() { int a; cout<<"Enter a number"; cin>>a; [B]if(a=5)[/B] { cout<<"Five"; } else { cout<<"Not Five"; } } [/CODE] When I use the assignment, the result is always "five". I understand that a is assiged 5, but there is no statement to check for … |