Answer Posted / senthil.k,arasur
void main()
{
int a,b,c;
cout<<"Diagonal matrix";
for(a=1;a<=3;a++)
{
for(b=1;b<=3;b++)
{
c=1;
if(c==b)
{
cout<<c;
}
else
{
cout<<"0";
}
}
c++;
cout<<"\n";
}
}
output:
1 0 0
0 2 0
0 0 3
| Is This Answer Correct ? | 38 Yes | 52 No |
Post New Answer View All Answers
What is abstraction in oops?
What is multilevel inheritance in oop?
Are polymorphisms mutations?
Get me a number puzzle game-program
What is the highest level of cohesion?
write string class as your own class in java without using any built-in function
What are the 3 principles of oop?
what is the drawback of classical methods in oops?
What is encapsulation in simple terms?
What is overloading in oop?
Who invented oop?
What is pointer in oop?
Please send ford technologies placement paper 2 my mail id
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is encapsulation process?