Answer Posted / it career point
//program to 3-tuple representation
#include<stdio.>
#include<conio.h>
void main()
{
int a[5][5],row,columns,i,j;
printf(Ënter the order of the matrix.(5*5)");
scanf("%d%d",&row,&columns);
printf("Enter the element of the matrix\n");
for(i=0;i<row;i++)
for(j=0;j<columns;j++)
{
scanf("%d", &a[i][j]);
}
printf("3-tuple representation");
for(i=0;i<row;i++)
for(j=0;j<column;j++)
{
if(a[i][j]!=0)
{
printf("%d %d %d", (i+1),(j+1),a[i][j]);
}
}
getch();
}
| Is This Answer Correct ? | 41 Yes | 42 No |
Post New Answer View All Answers
Explain the term printf() and scanf() used in c language?
Is Exception handling possible in c language?
What does %c do in c?
Are pointers integer?
How are pointers declared in c?
What is file in c language?
What does the function toupper() do?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Tell me can the size of an array be declared at runtime?
Is calloc better than malloc?
What are the different types of control structures?
What is the difference between test design and test case design?
Write a program to implement queue.
write a program to find the given number is prime or not
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?