#!/bin/bash for testcase in 6 11; doset $testcase eval echo {1..$1} + {$1..1}|tr -d \ |bc bc<<<`eval printf %s {1..$1} + {$1..1}` done
Standard input is empty
777777 777777 2345555545332 2345555545332
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!