input a iteger like a string
Posted: Mon Nov 13, 2006 5:57 am
I need to input two very long int in a single line seperated by a space. in this case "gets()" does not terminate by space(" ") . as the number of digits is undefined , i can't use "scanf()" with "while{}" loop.
a sample input is given .
a sample input is given .
Code: Select all
/*************sample input*****************/
2(test case)
121215453521 555555555555511111111(case 1)
5555555555555555555 44444444444444444(case 2)