Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~780 People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for quasimof

i wrote this program to find prime numbers, but whenever i run it, i get an error. This is the code [c++]: int main(void) { int num=0; int i=0; cout<<"num"; cin>>num; while(i<num) { num=num%i; i++; } if(num==0) cout<<"not prime"; else cout<<"prime"; return 0; } My real task is to get …

Member Avatar for jasweb2002
0
100
Member Avatar for quasimof

We are supposed to write a program which asks for the month, date, and yr and then outputs the day of that date. **input:** Month: 7 // This is July Day: 4 Year: 1776 **output:** July 4, 1776 was on a Thursday Formula: day = (r + [2.6m - .2] …

Member Avatar for ZuK
0
555
Member Avatar for quasimof

I have an assignment where I am given a sequence and I must turn the user's input (int) into that sequence. For example: number : 2 The sequence starting at 2 is : 2 4 16 37 58 The sequence is: 2^2=4, 4^2=16, 1^2+6^2=37, 3^2+7^2=58, etc.... how would I compute …

Member Avatar for quasimof
0
125