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
Why do some versions of toupper act strangely if given an upper-case letter?
What is the function of volatile in c language?
Why n++ execute faster than n+1 ?
What is sizeof array?
What are different storage class specifiers in c?
How do I read the arrow keys? What about function keys?
What is time null in c?
Explain what does the function toupper() do?
What will the preprocessor do for a program?
Explain how are portions of a program disabled in demo versions?
Explain the difference between getch() and getche() in c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What are the two types of functions in c?
What is the meaning of ?
What is string function in c?