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

Copyright © 2019. All rights reserved. Terms, Privacy

We use cookies to improve your experience on our site and to show you relevant advertising. By browsing this website, you agree to our use of cookies. Learn more