0

WAP to input your name and check name is valid or not ?

Help to find my mistake . Defining if in for loop , valid name is repeated according to number of letter in name . Using C (String) https://www.sololearn.com/discuss/2872910/?ref=app

2nd Sep 2021, 4:53 PM
Mansi Srivastava
Mansi Srivastava - avatar
3 Answers
+ 4
Mansi Srivastava What are validation parameters?
2nd Sep 2021, 5:16 PM
AĶ¢J
AĶ¢J - avatar
+ 2
Hey Mansi Srivastava your question seem unclear, you can add a code or more info
2nd Sep 2021, 5:07 PM
āœ³AsterisKāœ³
āœ³AsterisKāœ³ - avatar
+ 1
Your task is simple if you know about data types strings and if else condition then easily you can do it by yourself. First you need to take input name from user and in if condition you to compare your original name with user input_name if this will be match then print valid and in else part print not valid. Note that In c language you cannot compare two string directly like this if("Mansi"=="Mansi") in some languages its valid you can use strcmp function for comparing in c for more details you can search
2nd Sep 2021, 6:09 PM
A S Raghuvanshi
A S Raghuvanshi - avatar