From d013ecf110882b28586d7d5e46712405f4a656ad Mon Sep 17 00:00:00 2001 From: Afraz khan <120358458+theafrazkhan@users.noreply.github.com> Date: Fri, 12 Apr 2024 12:04:37 +0500 Subject: [PATCH] Update class1.cpp changed and operators with or --- class1.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/class1.cpp b/class1.cpp index 8111490..5f7815b 100644 --- a/class1.cpp +++ b/class1.cpp @@ -44,17 +44,17 @@ cout<<"\nN. Name"; cout<<"\nM. Mobile Number"; cin>>reply; - if(reply=='C'&& reply=='c') + if(reply=='C'|| reply=='c') { cout<<"\nNew customer number : "; cin>>cno; } - else if(reply=='N' && reply=='n') + else if(reply=='N' || reply=='n') { cout<<"\nNew name : "; cin>>name; } - else if(reply=='M' && reply=='m') + else if(reply=='M' || reply=='m') { cout<<"\nNew mobile number : "; cin>>mbno;