beginners problem

I found a small problem solving it took me hours as I am a beginner. Thought I could share it with you.

its basically a problem of C Programming. the problem was to keep the outcome same but not using the multiplication(*) function. So without further ado lets write the codes..

#include <stdio.h>

int main()

{

    int n.m;

    for(n=1;n<=20;n++){

        for(m=1;m<=10;m++){

            printf(“%d x %d = %d”, n, m, n*m);

        }

    }

    return 0;

}

whatever the outcome is you have to do the same but in  the codes you can’t use the multiplication…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s