Space between numbers | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Space between numbers

Sample input: 22 Sample output: 2 2

9th Feb 2019, 6:12 PM
Jefferson Villanueva
Jefferson Villanueva - avatar
5 Respostas
+ 3
Note that return type would be a string because of the spaces! https://code.sololearn.com/c2qFDy0Jzqik/?ref=app
9th Feb 2019, 6:40 PM
Jomari Pantorilla
Jomari Pantorilla - avatar
+ 1
//"\t" =tab creates space #include <iostream> using namespace std; int main() { int x=2; int y=2; cout<<x<<"\t"<<y; }
9th Feb 2019, 6:35 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
salamat :)
9th Feb 2019, 6:58 PM
Jefferson Villanueva
Jefferson Villanueva - avatar
0
program should accept short value from 10 to 99 and display them per digit separated by space.
9th Feb 2019, 6:39 PM
Jefferson Villanueva
Jefferson Villanueva - avatar
0
Jomari Pantorilla Iā€™ve tried to create my own code Iā€™ve got some error to my VisualStudio. the error message was ā€The preLaundTask ā€™C:/mingw/bin/g++.exe ā€™terminated with exit code1ā€ Iā€™ve tried to load your code Iā€™ve encountered the same problem.
10th Feb 2019, 5:33 AM
Jefferson Villanueva
Jefferson Villanueva - avatar