Techiio-author
Started by Anik AdhikaryMay 7, 2022

Open
Why "else" condition is not working ?

3 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 3 VIEWES SHARE
#include <iostream>
#include<string>
int main()
{
std::string mesto;
std::cin >> mesto;
if(mesto == "Demir Kapija")
std::cout << "Demir Kapija\n";
else
std::cout << "Not Demir Kapija\n";
}

1 Replies

Techiio-commentatorBradley Reid replied 2 months ago0 likes0 dislikes

Please remove space from if condition.

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance