India's first computer

Technically, India's first computer was a small analogue device built in 1953 at Calcutta's Indian Statistical Institute. It was used to solve linear equations. But a year or so later (c.1954–1955), the institute imported a British-built HEC-2M for a princely sum of ₹10 lakh and it is this device which is considered India's first true computer. The computer was a behemoth measuring 10 feet in length, 7 feet in breadth, and 6 feet in height. It had no keyboard, monitor, or even a processor, and was armed with a generous 3KB worth of memory. Input was fed into it using punched cards and output was printed out via an attached printer.

The computer took around 15 minutes to calculate the square root of a 16-digit number. But it was still used (among other things) to solve complex differential equations sent to the institute by Homi J. Bhabha of the Tata Institute of Fundamental Research (TIFR).

The HEC-2M was part of the APE(X)C, or All Purpose Electronic (X) Computer series designed by Andrew Donald Booth of Birkbeck College in London and manufactured by the British Tabulating Machine Company. The "HEC-2M" stood for Hollerith Electronic Computer (model 2M) with the M denoting that the machine was 'marketable' and suitable for commercial use.

India's first digital computer was unfortunately scrapped in the mid-1970s.

Indian connection
Connotations

There are a number of discrepancies in the available sources. Some date the analogue computer to 1950. Some note that the HEC-2M was a 16-bit machine while others prefer 24-bit (used here). Some suggest that the device was fed input via punched cards while others state that electrical switches were the only option for input. Some suggest that the output was printed out while others suggest that it had to be deciphered from a series of neon lights. It's all a bit of a mess! FWIW, I've chosen to use the specifications proffered (with references) by V. Rajaraman who is a professor at IISc, Bangalore.

India's second computer was also installed at the ISI in 1959. This one was a Russian-built device named 'Ural'.