# help needed

Discussion in 'C' started by yogesh joshi, Aug 4, 2010.

1. ### yogesh joshiNew Member

Joined:
Aug 4, 2010
Messages:
5
0
Trophy Points:
0
help me guys plz as fast you can

write a program to find products of two metrics in c

write a program to arrange metrics in ascending order with the help of function

write a program to count characters, vowels,blankspaces, lines, words and numbers in c

write a program to find whether string is palindome or not in c

2. ### ksraoNew Member

Joined:
Aug 10, 2010
Messages:
11
1
Trophy Points:
0

1. Matrix Multiplication

Code:
```# include <stdio.h>
# include <conio.h>
void main (void)

{
int A[3][3],B[3,3],C[3][3];
clrscr();
for (i=1;i<=3;i++)
for(j=1;j<=3;j++)
scanf("%d"&A[i][j]);

for (i=1;i<=3;i++)
for(j=1;j<=3;j++)
scanf("%d"&B[i][j]);

for(i=1;i<3;i++)
for(j=1;j<3;j++)
{
for(k=1;k<j;k++)
C[i][j]=C[i]+A[i][k] * B[K][J];
}
printf(" The product of A&B  matrix is C \n");
for (i=1;i<=3;i++)
{
for(j=1;j<=3;j++)
printf("%d"C[i][j]);
printf('/n');
}
getch();
}```

For further questions please refer programming ANSI C.

Kolla Sanjeeva Rao

3. ### yogesh joshiNew Member

Joined:
Aug 4, 2010
Messages:
5
0
Trophy Points:
0
thnx bro is there any gratitude system i want to gratitude u
and one more thing tell me another answer's also plzzzzzzz

4. ### ksraoNew Member

Joined:
Aug 10, 2010
Messages:
11
1
Trophy Points:
0
Dont worry

in the first program i have forgotten to declare i,j,k as int in declaration section do it.

2. To find out the given String is palindrome or Not.
Code:
```   # include <stdio.h>
# include <conio.h>
# include <string.h>

void main(void)
{
clrscr();
char st[20];
int i,l,s,mid;
printf(" Enter the string \n");
gets(st);
l=strlen(st);
mid=l/2;
for(i=0;i<=mid;i++)
if (st[i]!=st[l-1])
goto XX;
else
l=l-1;
printf("the given string is palindrome \n");
goto YY;
XX:printf("The given string is not palindrome\n");
YY:;
getch();
}
```
Regards
Kolla. Sanjeeva Rao

For further queries in C refer ANSCI C-Programming by BalaguruSwamy

5. ### yogesh joshiNew Member

Joined:
Aug 4, 2010
Messages:
5
0
Trophy Points:
0
hey thnx again but another i want another two also plz help

6. ### ksraoNew Member

Joined:
Aug 10, 2010
Messages:
11
1
Trophy Points:
0
hi,
Joshi

You can find these questions answers in programming in ANSIC C by BalaGuruswamy and go through some online-tests

Kolla Sanjeeva Rao.

7. ### vishnupriyaNew Member

Joined:
Aug 14, 2010
Messages:
2
0
Trophy Points:
0
i want to know about array

Joined:
Aug 14, 2010
Messages:
2