Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
0 Endorsements
Ranked #44.2K
Ranked #4K
~718 People Reached
Favorite Forums
Favorite Tags
Member Avatar for sethwb

Hello, I am a student and I'm having trouble figuring out why my if statement won't evaluate. I'm not getting any error in my compiler - I'm using Dev-C++ 4.9.9.2 The if statement in question is on line #160 in the code below (full code). You will need the students.txt …

Member Avatar for PathikRaval
0
287
Member Avatar for salty11

For this code i am inputing one number and trying to see if it is a perfect number [CODE]#include<iostream> #include<cmath> #include<iomanip> #include<conio.h> using namespace std; void perfect(int); int isfactor(int, int); int N, i; int main() { perfect(N); isfactor(N, i); } int isfactor(int number, int divisor) { if(number%divisor==0) return 1; else …

Member Avatar for PathikRaval
0
326
Member Avatar for ladylady

it suppose to look like this Trapezoid with height 4, base1 3 and base2 9 EEE EEEEE EEEEEEE EEEEEEEEE but nothing is happening this is my code [code] else if (letter =='Q' || letter =='q') { cin>>hei>>wei>>draw; base = hei*2; cout<<"Trapezoid with height "<<hei<<"base1 "<<wei<<"and base2 "<<base; cout<<endl; for(i=1;i<hei;i++) { …

Member Avatar for PathikRaval
0
105