Results 1 to 1 of 1
Threaded View
-
25th Mar 2012, 07:15 AM #1OPBanned
(C++) Debugging Help Needed
Code:using namespace std; #include<iostream> #include<conio.h> int main() { int x; cin>>x; int y=x/500; cout<<y; int z=x-500; int a=z/100; if(a>=1) { cout<<a; } else if(a<=0) { int b=z/50; if(b>=1) { cout<<b; } else if(b<=0) { int c=z/20; if(c>=1) { cout<<c; } else if(c<=0) { int d=z/10; if(d>=1) { cout<<d; else if(d<=0) { e=z/1; cout<<e; } } } } } getch(); return 0; }
Kindly help.!champ_007_bond Reviewed by champ_007_bond on . (C++) Debugging Help Needed using namespace std; #include<iostream> #include<conio.h> int main() { int x; cin>>x; int y=x/500; cout<<y; int z=x-500; Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
help needed!!
By aryan10 in forum vBulletinReplies: 1Last Post: 13th Jun 2012, 04:52 PM -
DLE Help needed
By nk2join in forum Technical Help Desk SupportReplies: 0Last Post: 13th Nov 2011, 05:53 AM -
[Other] RL needed
By devilsgal in forum ArchiveReplies: 2Last Post: 4th Jan 2011, 08:43 AM -
DEDICATED,ACTIVE NEEDED - Moderators/GM's Needed with BENEFITS
By robert in forum Community CooperativeReplies: 0Last Post: 18th Jul 2010, 03:36 PM -
Staff Needed Posters NEEDED.!! With Benefits!
By timboy18 in forum Community CooperativeReplies: 2Last Post: 17th Jul 2009, 06:54 AM
themaManager - edit and manage...
Version 4.18 released. Open older version (or...