write a program in c language for the multiplication of two
matrices using pointers?

Answer Posted / tutu

#include<stdio.h>
#include<conio.h>
int main()
{
int mul(int,int);
int n1,n2,f=1,ans;
while(f==1)
{
printf("\n***MULTIPLICATION OF TWO NATURAL
NUMBERS***");
printf("\nEnter Two Numbers: ");
scanf("%d %d",&n1,&n2);
if(n1<=0||n2<=0)
{
printf("\nInvalid Choice...");
printf("\nDo You Want To Try
Again...\n1.Yes\n2.No");
scanf("%d",&f);
}
else
{
printf("\nAns = %d",mul(n1,n2),"\n");
printf("\nDo You Want To
Continue:\n1.Yes\n2.No\n");
scanf("%d",&f);
}
}
}
int mul(int a,int b)
{
return((b-1)*a+a);
}

Is This Answer Correct ?    19 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where are some collections of useful code fragments and examples?

721


What is the significance of c program algorithms?

685


What is the use of static variable in c?

597


What is extern c used for?

571


what is bit rate & baud rate? plz give wave forms

1523






Explain what are its uses in c programming?

600


Explain the ternary tree?

605


Write a program to generate random numbers in c?

666


What are the 5 organizational structures?

571


What is #include conio h?

598


What are the application of c?

652


What is c standard library?

694


Explain what is the concatenation operator?

628


What is a shell structure examples?

596


What does sizeof int return?

596