Pages

Tampilkan postingan dengan label print. Tampilkan semua postingan
Tampilkan postingan dengan label print. Tampilkan semua postingan

Jumat, 20 Mei 2016

Make Money to Write About Your Kids Print Version


We are getting close, writer and blogger friends! You can click this link to buy the ebook now if you just cant wait, but right now my husband is proofreading the print proof of the same book for clarity and all that and, since we are in Houston currently with him for work, I will be giving it a GO FOR LAUNCH before we leave Houston next week. (dont do run-on sentences like that when you write articles for the regional or national parenting publications, please ... do as I say, not as I sometimes do ... LOL!). Here is my husband proofing the proof at our hotel and here is the post where you can find updates to the print version because things change fast in the magazine publishing world!


Read More..

Senin, 16 Mei 2016

C Program to Print Triangles

C# Program to Print Triangles

Program Statement:
Write a program to produce the following output:
A B C D E F G F E D C B A
A B C D E F     F E D C B A
A B C D E           E D C B A
A B C D                 D C B A
A B C                        C B A
A B                               B A
A                                      A

Solution:
 static void Main(string[] args)
{
int a, x, n = 71, o = 70, y = 1, c;
for (x = 1; x <= 7; x++)
{
for (a = 65; a <= n; a++)
{
Console.Write(Convert.ToChar(a));
}
if (x == 2)
o = 70;
for (c = 2; c < y; c++)
Console.Write(" ");
for (a = o; a >= 65; a--)
Console.Write((char)a);
Console.WriteLine();
n--;
o--;
y = y + 2;
}

Console.ReadLine();
}


Read More..

Jumat, 13 Mei 2016

C Program to Print Fibonacci series

C# Program to Print Fibonacci series

Program Statement:
Write a program which prints the Fibonacci series using loop.
1 1 2 3 5 8 13 21 34 …

Solution:
 public class _fib
{
int f = 0, s = 1, n, fib = 0;
public void _show()
{
Console.WriteLine(" Print fibonacci series 0 1 1 2 3 5 8 13 ... ");
Console.Write(" Enter range of terms of fibonacci series : ");
n = Convert.ToInt32(Console.ReadLine());
Console.Write(" First {0} terms are : ", n);
for (int x = 0; x < n; x++)
{
if (x <= 1)
{ fib = x; }
else
{
fib = f + s;
f = s;
s = fib;
}
Console.Write("{0} ", fib);
}
Console.WriteLine(" ");
}
}


Read More..

Kamis, 12 Mei 2016

Program To Print Ascii Table in Assembly Language

Program To Print Ascii Table in Assembly Language 

 .MODEL SMALL
.STACK 100H
.DATA
PROMPT DB "The 256 ASCII Characters are ",0AH,"$"
nxtline DB 0AH,"$"
.CODE
start:
MOV AX, @DATA ; initialize DS
MOV DS, AX
LEA DX, PROMPT ; load and print PROMPT
MOV AH, 9h
INT 21H
MOV Cl, 0 ; initialize CL
MOV AH, 2 ; set output function
LP: ; loop label
Mov DL, CL
MOV AH ,2H ; print ASCII character
INT 21H
LEA DX, nxtline
MOV AH,9H
INT 21H
INC CL ; Increment CL
CMP CL , 255D
JNE LP ; jump to label LP if CL is 255

MOV AX,4C00H
INT 21H
END start

Tags: Program To Print Ascii Table in Assembly Language  Assembly language program in assembly language printing ascii values in assembly language COAL coal program coal programming Ascii values Ascii Table in Assembly
Read More..

Senin, 09 Mei 2016

C Simple Loop Program example to print characters

Simple Loop Problem to Print A B D H P

Problem Statement:
Write a program using for loop which prints the following output. (You have to find a pattern to print alphabetics in this order)
A B D H P

Solution:

static void Main(string[] args)
{
int i,j,ch=0,n;
Console.Write("A ");
for (i = 1; i <= 4; i++)
{
n = 1;
for (j = 1; j <= i; j++)
{
n = n * 2;
ch = 64 + n;
}
Console.Write((char)ch + " ");
}

Console.ReadLine();
}


Read More..

C program to print nth iteration using loops

C# program to print 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 . . . nth iteration

Problem Statement:
Write a program using loop which prints the following output.
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 . . . nth iteration

Solution:
static void Main(string[] args)
{
int i, j, num;
Console.WriteLine("Enter value of num:");
num = Convert.ToInt32(Console.ReadLine());
for (i = 1; i <= num; i++)
{
for (j = 1; j <= i; j++)
Console.Write(i + " ");
}
Console.ReadLine();
}


Read More..

Sabtu, 07 Mei 2016

program to Print Sum of factorial Series in C

C# program to Print Sum of factorial Series

Program Statement:
Write a program to display the sum of the following series.
2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n-1)!

Solution:
 public class factorial
{
int n;
public void ser()
{
double f, sum = 2, res = 1, up = 2;

Console.WriteLine(" Series = 2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n-1)!");
Console.WriteLine();
Console.Write(" Enter ending point : ");
n = Convert.ToInt16(Console.ReadLine());

for (int i = 2; i <= n; i++)
{
if (i % 2 == 1)
{
f = 1;
for (int x = i; x > 0; x--)
{ f = f * x; }
up = up + 2;
res = up / f;
sum = sum + res;
}
}
Console.WriteLine(" Sum : {0} ", sum);
Console.WriteLine();
}
}


Read More..

Kamis, 05 Mei 2016

C Program to print Rectangle

C# Program to print Rectangle $

Program Statement:
Write a program using for loop which prints the following output on the screen.
$$$$$$$$$$$

$                $

$                $

$                $

$$$$$$$$$$$

Solution:
 static void Main(string[] args)
{
for (int i = 1; i <= 11; i++)
Console.Write("$");
Console.WriteLine();
Console.WriteLine();

for (int i = 1; i <= 3; i++)

Console.WriteLine("$ $ ");

for (int i = 1; i <= 11; i++)
Console.Write("$");
Console.ReadLine();
}


Read More..

Selasa, 03 Mei 2016

C Program to Print Triangle in Square

C# Program to Print Triangle in Square

Program Statement:
Write a program which display the following output on the screen.
####$####
###$#$###
##$###$##
#$#####$#
$#######$

Solution:
 class shape
{
int x, y;
public void sh()
{
Console.WriteLine();
for (x = 1; x <= 5; x++)
{
for (y = 1; y <= 5 - x; y++)
{
Console.Write("#");
}
Console.Write("$");
for (y = 2; y <= x * 2 - 1; y++)
{
Console.Write("#");
}
Console.Write(" $");
for (y = 1; y <= 5 - x; y++)
{
Console.Write("#");
}
Console.WriteLine(" ");
}
}
}


Read More..

C program to print Factorial of all Prime numbers in csharp

C# program to print Factorial of all Prime numbers

Program Statement:
Write a program using loop which takes one value n from user and show the factorial of all prime numbers which are less then n. e.g. if n = 10 then program will print the factorial of 2,3,5,7.

Solution:
 public class fop
{
int x, a, b, p, fac=1;
public void fact()
{
Console.WriteLine(" Show factorial of primes less than n ");
Console.Write(" Enter ending point : ");
x = Convert.ToInt32(Console.ReadLine());
for (a = 2; a < x; a++)
{
p = 1;
for (b = 2; b < a; b++)
{
if (a % b == 0)
{ p = 0; }
}
if (p == 1)
{
fac = 1;
for (int c = 1; c <= a; c++)
{ fac = fac * c;}
Console.Write(" Factorial of {0} is : {1} ", a,fac);
}
}
Console.WriteLine(" ");
}
}


Read More..

Senin, 02 Mei 2016

Program to print sum of factorial of Odd series in C

C# Program to print sum of factorial of Odd series

Program Statement:
Write a program to display the sum of the following series i.e. sum of the factorial of odd series
1! + 3! + 5! + 7! + 9! + . . . + n!

Solution:
 static void Main(string[] args)
{
int i, j, f,last, sum = 0;
Console.WriteLine("Enter Last value:");
last = Convert.ToInt32(Console.ReadLine());
i = 1;
while (i <= last)
{
f = 1;
j = i;
while (j >= 1)
{
f = f * j;
j--;
}
sum = sum + f;
Console.WriteLine("factorial of " +i+"="+f);
i = i + 2;
}
Console.WriteLine("sum of all factorial = " + sum);
Console.ReadLine();
}


Read More..

Jumat, 29 April 2016

C program to print nth iteration Csharp Programs

C# program to print 1 2 4 8 16 21 64 128 …nth iteration

Program Statement:
Write a program using for loop which prints the following series.
1 2 4 8 16 21 64 128 …nth iteration

Solution:

static void Main(string[] args)
{
int n,i=1,num=1;
Console.WriteLine("Enter Value of n ");
n = Convert.ToInt32(Console.ReadLine());
Console.Write(i+" ");
for (i = 1; i <= n; i++)
{
num = num * 2;
Console.Write(num + " ");
}

Console.ReadLine();
}


Read More..

Sabtu, 23 April 2016

C Program to Print ASCII values and characters using a while loop

C# Program to Print ASCII values and their equivalent characters using a while loop

Problem Statement:
Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255.

Solution:
static void Main(string[] args)
{
int i=0;
Console.WriteLine("ASCII Char");
while (i <= 255)
{
Console.WriteLine(i+" "+(char)i);
i++;
}
Console.ReadLine();
}


Read More..

Rabu, 13 April 2016

C Program to Print ASCII Values Using do while Loop

C# Program to Print ASCII Values Using do-while Loop

Program Statement:
Write a program to print all the ASCII values and their equivalent characters using a do-while loop. The ASCII values vary from 10 to 255.

Solution:
 static void Main(string[] args)
{
int i = 0;
Console.WriteLine("ASCII character");
do
{
Console.WriteLine(i+" "+(char)i);
i++;
} while (i <= 255);
Console.ReadLine();
}


Read More..

Senin, 11 April 2016

C Program to Print shapes diamond half diamond

C# Program to Print shapes

Program Statement:
Write a program using for loop which prints the following output on the screen.
*
**
***
****
***
**
*

Solution:
 static void Main(string[] args)
{
for (int i = 0; i <= 3; i++)
{
for (int j = 0; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();

}
for (int i = 3; i >0; i--)
{
for (int j = 0; j <= i-1; j++)
{
Console.Write("*");
}
Console.WriteLine();

}
Console.ReadLine();}


Read More..

Minggu, 10 April 2016

C Program to Print different Shapes Triangle half triangle

C# Program to Print different Shapes

Program Statement:
Write a program using for loop which prints the following output on the screen.
*
***
*****
*******
*********
***********

Solution:
 static void Main(string[] args)
{
for (int i = 0; i <= 10; i=i+2)
{
for (int j = 0; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadLine();
}


Read More..

Selasa, 05 April 2016

C Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number

C# Program to print sum of the factorial of odd series multiply with x where power of x is square of corresponding number

Program Statement:
Write a program to display the sum of the following series i.e. sum of the factorial of odd series multiply with x where power of x is square of corresponding number.
X1*1! + X9*3! + X25*5! + X49*7! + X81*9! + . . . + Xn2*n!

Solution:
 class _power
{
long n, f, x, sum = 0;
public long power(long a, long b)
{
long res = 1;
for (int i = 1; i <= b; i++)
res = res * a;
return res;
}
public void cal()
{
Console.WriteLine(" Series X^1*1! + X^9*3 +...+X^n2*n! ");
Console.Write(" Enter value of x : ");
x = Convert.ToInt32(Console.ReadLine());
Console.Write(" Enter ending point : ");
n = Convert.ToInt32(Console.ReadLine());
for (int i = 1; i <= n; i++)
{
if (i % 2 != 0)
{
f = 1;
for (int j = i; j >= 1; j--)
f = f * j;
sum = sum + ((power(x, i * i)) * f);
}
}
Console.WriteLine(" Result = {0} ", sum);
}
}


Read More..

Rabu, 23 Maret 2016

C Program to Print half Diamond shapes using numbers

C# Program to Print half Diamond shapes using numbers 1 to 10

Program Statement:
Write a program to produce the following output:
             1
          2   3
        4   5   6
       7  8  9  10

Solution:
 static void Main(string[] args)
{
int i,j,k=1;
for (i = 1; i <= 4; i++)
{
for (j = 4; j >= 1; j--)
{
if (j > i)
Console.Write(" ");
else
Console.Write(" " + k++ + " ");
}
Console.WriteLine();
Console.WriteLine();
}
Console.ReadLine();
}


Read More..

Kamis, 17 Maret 2016

C Program to Print number of prime values in the array

C# Program to Print number of prime values in the array

Program Statement:
Write a program which takes 10 values from user in an array and then show the number of prime values in the array.

Solution:
 public class arr
{
int c, count = 0, n;
int[] array = new int[10];
public void arr_func()
{
Console.WriteLine(" Enter 10 element only! ");
for (int x = 0; x < 10; x++)
array[x] = Convert.ToInt32(Console.ReadLine());
for (int y = 0; y < 10; y++)
{
n = array[y];
for (c = 2; c <= n - 1; c++)
{
if (n % c == 0)
{ break; }
}

if (c == n)
{
count++;
Console.WriteLine(" {0} is prime number! ", n);
}
}
Console.WriteLine(" Number of prime values : {0} ", count);
}
}


Read More..

Rabu, 16 Maret 2016

Parenting and Family Magazines That Pay Over 250 of Them!!! Print Online

Woo hoo! The 6th edition of my ebook for writers who want to write for parenting/family markets is live here on Amazon! There are 285 markets in here! Please let your friends know who might want to break into this lucrative market because its exactly how I have a blast while making money for my family. Its on a super sale price right now while I work on the 7th edition, due out this spring in ebook and paperback formats!

I personally love having a print copy of everything and thought you might also like that option. This makes it easier to highlight publications your work appears in, cross out email addresses that may change, black out publications that fold, add those lovely Post-It notes anywhere you like, etc.!

Ive been in over 140 parenting mags and its growing ... and there are 50ish new markets in the 6th edition! You can do what Ive done. I have no English or Journalism degree ... just parenting knowledge and a love for writing.





If you dont have an email subscription to this blog, please sign up now so you can get updates on the 7th edition, as well as updates on NEW MARKETS and publications that go out of business, email addresses that change, etc.


 Good luck to you, and never be afraid to contact me at mommykerrie at yahoo dot com!
Read More..