English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

when the user inputs the number 4, the computer outputs:
1 2 3 4
1 1 2 3 4
2 2 4 6 8
3 3 6 9 12
4 4 8 12 16

2007-01-25 20:06:56 · 3 answers · asked by Sammy Baby 1 in Computers & Internet Programming & Design

3 answers

Hi Sammy !

check this code and tell me its working or not

#include
#include

void main(void)
{
int n=0;
clrscr();
printf("A multiplication table:\n";)
printf(" \n");
printf("Enter value of n");
scanf("%d",&n);
for(i=0;i printf(" &d\t",i);
for(int c = 1; c < n; c++)
{
printf( "&d | ",c);
for(int i = 1; i < n; i++)
{
printf("&d\t", i * c)
}
printf("\n");
}
}

Thirumalai
srj749@yahoo.com

2007-01-25 21:12:07 · answer #1 · answered by Anonymous · 1 0

Here is the code: #include #include #include /* prints a random number in the range 0 to 99 */ int main(void) { randomize(); printf("Random number in the 0-99 range: %d\n", random (100)); return 0; }

2016-03-29 03:11:40 · answer #2 · answered by Anonymous · 0 0

The Code written below is absolutely correct...Good work

2007-01-25 20:30:15 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers