Q;the factorial of a number B ia defined recursively as
Factorials can be represented as the number of times prime number occurs in it ,example 825 could be specified as(0 1 2 0 1)meaning no twos,1 three,2 fives,no sevens and 1 eleven.
Write a program that will readin a number N(2<=N<=100) and write out its factorial in terms of the numbers of the prime it contains.
It will contain a series of lines each containing a single letter N The file will bw terminated by a line consisting of a single 0.
It will contain a series of blocks of lines, one block for each line of input.
Each block will start with the number N,right justified in a field of width 3 and the characters '!',space, and '='.This will be followed by a list of the number of times each prime numbers occurs in !N.
There should be right justified in fields of width 3 and each line (except the last of a block, which may be shorter)should contain 15 numbers.Any lines after the first should be indented .Follow the layout of the example shown below exactly.
Write a program that takes two wordss and finds any common letters that they have.
For example, the words 'computer' and 'program' have the letters 'o','m','p','r' in common. The output should be both words with all common letters in capitals. Neither word will have more than 8 letters.
an integer substring of an integer is formed by consecutive digits of the original integer. For examp[le, the number 6158 contains the substrings 6,1,5,8,61,15,58,615,158,6158. you must find the largest substring of an integer that is also a prime.
the input will be an integer N,(0<=N<=1 000 000 000).
The output will be the largest prime substring of N. If no substring is a prime, then your program should print "No Primes".
ps: i know you're new to .net, but look, i personnaly don't even know it, and i think you could search the MSDN for that a bit by yourself too too worry, this is just an advice, not something to break you...
i need a function that:
when i enter a date , function checks that format
if that format is correct return 1 and if not correct return 0;
and type of date field in database is not "date" its "varchar".
and my date is solar it's not of the Christian era.
thanks for your help
Hi guys, I asked about this yesterday, but the only suggestion I got did not help.
I tried to write a service in C++ using the template provided in Visual studio 2005. The service seemed to compile and install fine, but, it does not appear in the service listings. Does anyone have any suggestions?
I am new to Managed C++ (VS2005). I am currently in the process of drawing lines onto images, which are loaded from HDD. I can add a line onto the image, however whenever I try to draw another line over the image, the previous line object dissapears. Is there a way of keeping all the lines on the image???
It depends on what you're doing. If you're drawing the line onto the screen in WM_PAINT, then you're not drawing on the image at all. You'd need to keep track of all lines, and draw them. If you're drawing onto a graphics object that contains the bitmap, then the lines should persist, unless you're reloading from disk for some reason, then you'd need to save first. It really depends on what the code looks like.