#include <iostream>#include <string> int main(){ int num; std::string str; while(std::cin >> num >> str) { std::cout << num << " with units " << str << std::endl; }}
12 meters 12meters 12 inches 12inches
12 with units meters 12 with units meters 12 with units inches 12 with units inches
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!