Is it possible to replace the %d : <pre><code>int main()
{
    int M1[5][5], M2[10][3];
    int i, j, k = 1, m, n;
    int x, y, z, l = 0;
    cout &lt;&lt; "Enter number of row ";
    cin &gt;&gt; m;
    cout &lt;&lt; "Enter number of columns";
    cin &gt;&gt; n;
    printf("\nEnter the elements of the matrix :\n");

    for (i = 0; i &lt; m; i++)
    {
        for (j = 0; j &lt; n; j++)
        {
            scanf ("%d", &amp;M1[i][j]);
        }
    }
</code></pre>

<p>I want to replace the 'scanf' with 'cin' but is it possible to replace the '%d' by something else and still keeping the data?</p>
