C++ world
Saturday, 1 June 2013
Alphabets
21:36
No comments
#include<iostream.h>
void main()
{
for(int i=0;i<10;i++)
{
cout<<"*";
if(i==0||i==5)
{
for(int j=0;j<5;j++)
cout<<" *";
}
else
{
for(int j=0;j<10;j++)
cout<<" ";
}
cout<<"*"<<endl;
}
}
Email This
BlogThis!
Share to X
Share to Facebook
Share to Pinterest
Newer Post
Home
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Pages
Home
Back to Electrcial EngineerS
Contact us
Powered by
Blogger
.
About
Popular Posts
Even Odd Counter
# include <iostream.h> // Construct a user defined array of 10 integers. // Count the even and odd integers in the array and dis...
Swap the contents of array
// Create TWO 2-D arrays of size 3 by 3 with user defined values. // Swap the contents of the two arrays. Display both arrays. #inclu...
Alphabets
#include<iostream.h> void main() { for(int i=0;i<10;i++) { cout<<"*"; if(i==0) {for(int j=0;j...
Subtraction of matix
// subtraction of arrays #include<iostream.h> void main() { int a[3][3], b[3][3], c[3][3], i, j; // initializing 2 D array...
Alphabets
#include<iostream.h> void main() { for(int i=0;i<10;i++) { cout<<"*"; if(i==0||i==5) { for(int j=0;...
Addition of arrays
// addition of arrays #include<iostream.h> void main() { int a[3][3], b[3][3], c[3][3], i, j; // initializing 2 D array a...
Maximum deviation
To find maximum deviation // maximum deviation #include<iostream.h> #include <math.h> void main() { int a[3][3], i, j...
Multiplication of matrix
// multiplication of matrices #include<iostream.h> void main() { int a[3][3], b[3][3], c[3][3] = {0}, i, j, k; // initiali...
Identity Matrix
To check matrix is identity or not? // addition of arrays #include<iostream.h> void main() { int a[3][3], b[3][3], c[3][3], ...
Construction of exponentialexponential series
//function to construct exponential series of user defined "n". if user enter n=10 then it construct series upto 10... /...
About Me
Unknown
View my complete profile
Contact Form
Name
Email
*
Message
*
Translate
0 comments:
Post a Comment