+ 1
Write a C program to determined symbols..example: ? Output: it's a question mark
Help me please..thank you
4 Answers
+ 11
1)make a String array with those symbols & name
//U need to it like (2n-1)th element will be symbol & (2n)th element will be its name ... where n starts from 1
ie , array[0]=symbol1 +"";
array[1]=symbol1_name;
array[2]=symbol2 +"";
array[3]=symbol2_name;
& so on ...
2)take the user input as String
3)run the loop through each character of that String
4)inside that make another loop for moving in array
5)compare that character & elements of loop
6)when symbol matches at kth index , then print element with (k+1)th index of that array & then print a next line "\n"
//one of the idea I thinked , many such ways of solving it are possible
+ 7
Please, if you want us to help you, then show us your attempt, what you don't understand exactly, where you are struggling, it will be much easier!đđ
Do not ask someone else to do it for you!!!?
Use the search bar!
https://www.sololearn.com/post/10362/?ref=app
Please, read our guidelines:
https://www.sololearn.com/discuss/1316935/?ref=app
An useful code for any new user here!;)
https://code.sololearn.com/WvG0MJq2dQ6y/
0
Where is your tries?
0
Okay sorry!..i have my tries..i honestly don't know that i should post it..anyway thank you for reminding