0
#include<stdio.h>
int m,i,c;
main()

{

	clrscr();

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

{
	for(i=1; i<=10; i++)
{
	c=m*i;

		printf ("%d\t",c);
}
		printf ("\n");
	}

	getch();
}

Edited by __avd: Added [code] tags. Encase your code in: [code] and [/code] tags.

3
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by chescarleta18
0

Let's see...
No CODE tags, even thought there are at least 6 places they are explained, and 3 of them on the main page alone.
No explanation about why code was posted
I guess all there is to say is:
Congrats for writing some code! What's next?

0

so im sorry waltp.. im just a newbie user here... and i want 2 learn from this website so pls help me not to scold me... alright... again... i've seen you solved many problems here ...my tcher always using getch instead of return 0...what's the difernce...

1

Oh for crying out loud. Stop being such a cry baby. You have posted enough messages now to know that you should be using code tags.

WaltP has kindly asked you on at least two occasions to use tags and you just choose to ignore the advice.

Since you're too bloody lazy to read the sticky threads on the opening page of this forum, here's a link on how to post code using tags.

Read it, apply it and you'll be surprised to find out how willing people on this forum will be to help you out if you show some friggin' effort. If you can't manage a simple exercise such as this, then you're in the wrong game.
http://www.daniweb.com/forums/announcement118-3.html

0

so im sorry waltp.. im just a newbie user here... and i want 2 learn from this website so pls help me not to scold me... alright... again... i've seen you solved many problems here ...my tcher always using getch instead of return 0...what's the difernce...

Then read the Rules and the sticky post with titles that sound important. Easily fixed.

Here's why you should not use getch(): click here.

Here's why your main() is wrong: click here. And return x; is required to properly exit a program.

And no current compilers use clrscr() so your teacher is teaching old, useless techniques.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.