/* Sum of two Matrix */
#include<stdio.h> int main() { int a[5][5],b[5][5],c[5][5]; int i,j; for(i=0;i<5;i++) { printf("\nEnter elements of %d row of first Matrix: ",i+1); for(j=0;j<5;j++) scanf("%d",&a[i][j]); } for(i=0;i<5;i++) { printf("\nEnter elements of %d row of 2nd Matrix: ",i+1); for(j=0;j<5;j++) scanf("%d",&b[i][j]); } printf("\nSum of Matrix:\n\n"); for(i=0;i<5;i++) { for(j=0;j<5;j++) { c[i][j]=a[i][j]+b[i][j]; printf("%3d ",c[i][j]); } printf("\n"); } return 0; }
thank u
ReplyDeletehere a line
ReplyDeleteprintf("%3d ",c[i][j]);
after % why 3 is written?
%3d means that integer will take 3 chars for it data, empty space will be padded by space. it is for formatting
DeletePlz someone help me with this series 011223355881313212134345555.....
ReplyDeleteIt is normal Fibonacci series.... With numbers printed twice from 2
Deletenice article for beginners.thank you.
ReplyDeletewelookups C++
javacodegeeks
great post keep doingchange-color-of-text-in-html
ReplyDeleteerfremYcons-te Jason Gonnie https://marketplace.visualstudio.com/items?itemName=neolacpol-ke.Jigsaw-Puzzles-For-Kids-And-Adults---Europe-gratuita-2022
ReplyDeletepidislinkbe
VperciPpropshi Rebecca Martinez https://www.finvantedge.com/profile/waverleadarycah/profile
ReplyDeletetiocuwepen
condoVlia_bi Jimmy Bowman install
ReplyDeletehttps://filebear.org/adobe-photoshoppatched-with-key/
that
precchamaklink