+ 8
Challenge time : Allowed languages C++,java,c#
Get a string input from the user and print the corresponding ascii value for the input strings.
14 Antworten
+ 11
C++ One-Liner:
https://code.sololearn.com/cIq8kuD5WX7M/#cpp
+ 11
Hope I haven't committed. Python!! 😇
https://code.sololearn.com/c53mwX2aAPk0/?ref=app
+ 11
https://code.sololearn.com/c8SdFHSi9AS3/?ref=app
+ 6
There is no example for input/output, so here is my code:
https://code.sololearn.com/cj11OBC2cnYc/?ref=app
+ 6
oneliner...
https://code.sololearn.com/c5AQ64SfeLBR/?ref=app
+ 6
@Cool Codin @code learner @Jacob Pembleton
I hope you don't use C style cast in your programs, it's bad practice, because it could fail anytime at runtime, you should consider use static_cast. it's C++ not C. just sayin.
+ 4
char[] cArr = new Scanner(System.in).nextLine().toCharArray()
for(char c : cArr){
System.out.println((int)c);
}
+ 3
https://code.sololearn.com/cFBK806oO2Dc/?ref=app
+ 2
Cain Eviatar now check again
+ 2
Great :)