Can someone tell me why does this program run even when I press q.this program should not show anything if we press q.
#include<iostream>
using namespace std;
int main()
{
char ch;
cout<<"press c to continue or press q to quit the program ";
cin>>ch;
if (ch='c')
{
cout<<" hello world\n";