Forum: C++ Mar 10th, 2009 |
| Replies: 9 Views: 298 Then I too cannot help you do your assignments, but believe me I will offer more than the traditional rituals in prayer to request GOD to help you get your assignments done. ;)
Okay on a more... |
Forum: C++ Mar 10th, 2009 |
| Replies: 9 Views: 298 The forum announcement here (http://www.daniweb.com/forums/announcement8-2.html) suggests that no one here would be willing to provide you homework help unless you show some effort. But I ain't much... |
Forum: C++ Feb 17th, 2009 |
| Replies: 4 Views: 311 for(int x=1;x<=(num);x++)
Since 1 is not a prime number don't begin your loop with it, rather initialize x to 2.
Definition of prime : An integer greater than one is called a prime number if... |