Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
C Program for CREATE MATRICES
#include stdio.h>
#include conio.h>
void main()
{
int a[10][10],rw=0,clm=0,i=0,j=0;
char s=' ';
clrscr();
for(i=0;i<10;i++)
for(j=0;j<10;j++)
a[i][j]=0;
}
i=0; j=0;
printf("\nENTER THE LIMIT OF ROWS: ");
scanf("%d",&rw);
printf("\nENTER THE LIMIT OF COLS: ");
scanf("%d",&clm);
for(i=0;i { for(j=0;j { printf("\nENTER THE ELEMENT: "); scanf("%d",&a[i][j]); } } for(i=0;i { for(j=0;j { if(a[i][j]==0) { a[i][j]='-'; printf("%c ",a[i][j]); } else { printf("%d ",a[i][j]); } } printf("\n"); } getch(); } OUTPUT : ENTER THE LIMIT OF ROWS : 2 ENTER THE LIMIT OF COLS : 2 ENTER THE ELEMENT 1 ENTER THE ELEMENT 2 ENTER THE ELEMENT 3 ENTER THE ELEMENT 4 1 2 3 4
for(j=0;j { printf("\nENTER THE ELEMENT: "); scanf("%d",&a[i][j]); } } for(i=0;i { for(j=0;j { if(a[i][j]==0) { a[i][j]='-'; printf("%c ",a[i][j]); } else { printf("%d ",a[i][j]); } } printf("\n"); } getch(); } OUTPUT : ENTER THE LIMIT OF ROWS : 2 ENTER THE LIMIT OF COLS : 2 ENTER THE ELEMENT 1 ENTER THE ELEMENT 2 ENTER THE ELEMENT 3 ENTER THE ELEMENT 4 1 2 3 4
printf("\nENTER THE ELEMENT: ");
scanf("%d",&a[i][j]);
for(i=0;i { for(j=0;j { if(a[i][j]==0) { a[i][j]='-'; printf("%c ",a[i][j]); } else { printf("%d ",a[i][j]); } } printf("\n"); } getch(); } OUTPUT : ENTER THE LIMIT OF ROWS : 2 ENTER THE LIMIT OF COLS : 2 ENTER THE ELEMENT 1 ENTER THE ELEMENT 2 ENTER THE ELEMENT 3 ENTER THE ELEMENT 4 1 2 3 4
for(j=0;j { if(a[i][j]==0) { a[i][j]='-'; printf("%c ",a[i][j]); } else { printf("%d ",a[i][j]); } } printf("\n"); } getch(); } OUTPUT : ENTER THE LIMIT OF ROWS : 2 ENTER THE LIMIT OF COLS : 2 ENTER THE ELEMENT 1 ENTER THE ELEMENT 2 ENTER THE ELEMENT 3 ENTER THE ELEMENT 4 1 2 3 4
if(a[i][j]==0)
a[i][j]='-';
printf("%c ",a[i][j]);
else
printf("%d ",a[i][j]);
printf("\n");
getch();
OUTPUT :
ENTER THE LIMIT OF ROWS : 2
ENTER THE LIMIT OF COLS : 2
ENTER THE ELEMENT 1
ENTER THE ELEMENT 2
ENTER THE ELEMENT 3
ENTER THE ELEMENT 4
1 2
3 4
Question 1 Explain Abstract data types with its characteristics Question 2 Let us say your Learning Centre decides to store all the three types of student data Register
Define the Modulo Division Operator in c language? The C provides one more arithmetic operator % called as modulo division operator and this operator yields the remainder of an
Greatest Common Divisor (GCD) - The greatest common divisor (GCD) of two integers is the largest integer that will evenly divide both integers. The GCD algorithm involves intege
Change the matrix program (program 3) slightly. Overload == operator to compare two matrices to be added or subtracted. i.e., whether the column of first and the row of second
dynamic initialization of object using constructor in C++
color representation
Use 16 digit credit card numbers that contain 15 digits an 1 check digit. The format of the card number consists of the 15 digits followed by the check digit. The check digit is co
Intelligent homes are becoming increasingly popular as the cost/performance ratio of microcontrollers is continuously dropping. These systems incorporate various transducers to de
C Program to FIND VOWELS void main() { char str[50]; int ac=0, ec=0, ic=0, oc=0, uc=0; int i,stln,vc,word=1; clrscr
#include #include #include using namespace std; #define MAX 5 #define INF (1 #define DEBUG if(0) #define pii pair #define pb(x) push_back(x) class
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd