Subject Name    C
Program Name    Matrix fill Upper left +1, Lower right -1, Right to left diagonal 0
Program Description    Write a program that fills a matrix as follows 1. Upper left triangle with +1s 2. Lower right triangle with -1s 3. Right to left diagonal with zeros Display the contents of the matrix using not more than 2 printf statements
 
To Download Code, Use Ctrl+A(Select All) & Ctrl+C (Copy)
Program Code
   
Input Values(You must enter all user input value here, that you want to use during runtime)
To Run C Program
1. comment #include<conio.h>, clrscr(), getch(). This will not work online.
This (1.) will be done automatically..., So don't worry.

2. void main() change to int main() and return 0
This (2.) will do it manually, Otherwise it give runtime error but with correct output..., So don't worry



Share this solution or page with your friends.


Other Useful links

Maths For BCA & MCA Students


CMAT.AtoZmath.com - Online test preparation for CMAT MBA & MCA(Gujarat) Exam


AtoZmath.com - HOMEWORK HELP (WITH ALL SOLUTION STEPS)





 
Copyright © 2019. All rights reserved. Terms, Privacy

.