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
Where are some collections of useful code fragments and examples?
What is the significance of c program algorithms?
What is the use of static variable in c?
What is extern c used for?
what is bit rate & baud rate? plz give wave forms
Explain what are its uses in c programming?
Explain the ternary tree?
Write a program to generate random numbers in c?
What are the 5 organizational structures?
What is #include conio h?
What are the application of c?
What is c standard library?
Explain what is the concatenation operator?
What is a shell structure examples?
What does sizeof int return?