When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
7 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
Hello. First, may I know what language you're familiar with? Second, is this some kind of college assignment or homework, or code challenge?
do it in Java first. Java's syntax is similar to/based on C. Mind that in C there is no class and the System.out's print/println equivalent is printf();
the main function in C is void main() or int main()
and yeah there is no "string" class in C. You either use char* (char pointer) or char[] (char array)
fgets Java equivalent to Scanner
but it's merely a function, so forget about the class