# Program to Multiply Two 3 X 3 Matrices

``` #include```

``` int main() { int a[10][10], b[10][10], c[10][10], i, j, k; int sum = 0; printf("\nEnter First Matrix : n"); for (i = 0; i <3; i++) { for (j = 0; j < 3; j++) { scanf("%d", &a[i][j]); } } printf("\nEnter Second Matrix:n"); for (i = 0; i < 3; i++) { for (j = 0; j < 3; j++) { scanf("%d", &b[i][j]); } } printf("The First Matrix is: \n";); for (i = 0; i < 3; i++) { for (j = 0; j < 3; j++) { printf(" %d ", a[i][j]); } printf("\n"); } printf("The Second Matrix is : \n"); for (i = 0; i< 3; i++) { for (j = 0; j < 3; j++) { printf(" %d" , b[i][j]); } printf("\n"); } //Multiplication Logic for (i = 0; i <= 2; i++) { for (j = 0; j <= 2; j++) { sum = 0; for (k = 0; k <= 2; k++) { sum = sum + a[i][k] * b[k][j]; } c[i][j] = sum; } } printf("\nMultiplication Of Two Matrices : ); for (i = 0; i <3; i++) { for (j = 0; j< 3; j++) { printf("%d" , c[i][j]); } printf("\n"); } return (0); } ```
``` ```
``` Leave a Reply Your email address will not be published. Required fields are marked * Name * Email * Website Comment You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> ```
``` ```
``` EmbLogic Research & Competency Development Labs 2nd Flr, Bhagwan Sahai Palace, Capt. Vijayant Thapar Marg, Sec 15, NOIDA Phone: +91 120 4206165, +91 120 4206166, 8527567776 Email: info@emblogic.com Prod Engg Serv Research n Dev Project Consult Trainings Testimonials Affliate Program FAQs Copyright © EmbLogic Embedded Technologies Pvt. Ltd. <!-- \$.fn.stickyfloat = function(options, lockBottom) { var \$obj = this; var parentPaddingTop = parseInt(\$obj.parent().css('padding-top')); var startOffset = \$obj.parent().offset().top; var opts = \$.extend({ startOffset: startOffset, offsetY: parentPaddingTop, duration: 200, lockBottom:true }, options); \$obj.css({ position: 'relative' }); if(opts.lockBottom){ var bottomPos = \$obj.parent().height() - \$obj.height() + parentPaddingTop; if( bottomPos < 0 ) bottomPos = 0; } \$(window).scroll(function () { \$obj.stop(); var pastStartOffset = \$(document).scrollTop() > opts.startOffset; var objFartherThanTopPos = \$obj.offset().top > startOffset; var objBiggerThanWindow = \$obj.outerHeight() < \$(window).height(); if( (pastStartOffset || objFartherThanTopPos) && objBiggerThanWindow ){ var newpos = (\$(document).scrollTop() -startOffset + opts.offsetY ); if ( \$(document).scrollTop() < opts.startOffset ) newpos = parentPaddingTop; \$obj.animate({ top: newpos }, opts.duration ); } }); }; \$('#primary').stickyfloat({ duration: 400 }); // --> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-17969025-4']); _gaq.push(['_setDomainName', 'emblogic.com']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); ```