Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
QuestionHow to 'lock' the mdiparent border? Pin
shai sherman3-Sep-07 2:27
shai sherman3-Sep-07 2:27 
Question[Message Deleted] Pin
dianenacario3-Sep-07 2:23
dianenacario3-Sep-07 2:23 
AnswerRe: TRICKY AND CHALLENGING LOOP Pin
Pete O'Hanlon3-Sep-07 2:24
mvePete O'Hanlon3-Sep-07 2:24 
AnswerRe: TRICKY AND CHALLENGING LOOP Pin
Colin Angus Mackay3-Sep-07 2:47
Colin Angus Mackay3-Sep-07 2:47 
GeneralRe: TRICKY AND CHALLENGING LOOP.. Pin
Colin Angus Mackay3-Sep-07 2:59
Colin Angus Mackay3-Sep-07 2:59 
GeneralRe: TRICKY AND CHALLENGING LOOP.. Pin
Christian Graus3-Sep-07 3:21
protectorChristian Graus3-Sep-07 3:21 
GeneralRe: TRICKY AND CHALLENGING LOOP.. Pin
Paul Conrad3-Sep-07 7:49
professionalPaul Conrad3-Sep-07 7:49 
AnswerURGENT!!! HOMEWORK!!! Pin
J4amieC3-Sep-07 2:58
J4amieC3-Sep-07 2:58 
dianenacario wrote:
How can I modify this?
console.write("input integer:");
int i= int.parse(console.raedline());

int x=1;
for(int y=1; y=i; y++)
{
x=x*y;
}
console.write(x)
console.readkey();


This does not even fulfil the requirement before specification that the * operator is not to be used. It quite specifically states that the program must take 2 user inputs. Yours only takes 1.

Change this to take 2 inputs and get it working using the * operator. You will at least get partial credit even if you cant work out how to get the 2nd loop to do the job of the * operator.

Aside from that, requirements like this are not too dissimilar in the real world. Albeit that we don't ban the use of a particular operator, sometimes constraints are placed on you that you must adhere to. This goes for all jobs - not just programming.


AnswerRe: [Message Deleted] Pin
Colin Angus Mackay3-Sep-07 3:58
Colin Angus Mackay3-Sep-07 3:58 
GeneralRe: [Message Deleted] Pin
Paul Conrad3-Sep-07 7:52
professionalPaul Conrad3-Sep-07 7:52 
GeneralRe: [Message Deleted] Pin
Colin Angus Mackay3-Sep-07 8:06
Colin Angus Mackay3-Sep-07 8:06 
GeneralRe: [Message Deleted] Pin
Paul Conrad3-Sep-07 8:25
professionalPaul Conrad3-Sep-07 8:25 
QuestionNeed code for Word Wrapping- Plz help Pin
Hum Dum3-Sep-07 2:12
Hum Dum3-Sep-07 2:12 
AnswerRe: Need code for Word Wrapping- Plz help Pin
Luc Pattyn3-Sep-07 5:15
sitebuilderLuc Pattyn3-Sep-07 5:15 
GeneralRe: Need code for Word Wrapping- Plz help Pin
Hum Dum4-Sep-07 19:05
Hum Dum4-Sep-07 19:05 
GeneralRe: Need code for Word Wrapping- Plz help Pin
Luc Pattyn5-Sep-07 8:50
sitebuilderLuc Pattyn5-Sep-07 8:50 
GeneralNo where to go........- Plz help Pin
Hum Dum18-Sep-07 19:12
Hum Dum18-Sep-07 19:12 
AnswerRe: TRICKY&CHALLENGING LOOP Pin
Pete O'Hanlon3-Sep-07 2:12
mvePete O'Hanlon3-Sep-07 2:12 
QuestionConersion to DateTime Data type from String Pin
Prashant C3-Sep-07 2:02
Prashant C3-Sep-07 2:02 
AnswerRe: Conersion to DateTime Data type from String Pin
darkcalin3-Sep-07 4:06
darkcalin3-Sep-07 4:06 
QuestionI'm lost while looping! Pin
Muammar©3-Sep-07 1:46
Muammar©3-Sep-07 1:46 
AnswerRe: I'm lost while looping! Pin
Pete O'Hanlon3-Sep-07 2:00
mvePete O'Hanlon3-Sep-07 2:00 
GeneralRe: I'm lost while looping! Pin
Muammar©3-Sep-07 2:15
Muammar©3-Sep-07 2:15 
GeneralRe: I'm lost while looping! Pin
Pete O'Hanlon3-Sep-07 2:23
mvePete O'Hanlon3-Sep-07 2:23 
QuestionUsing gSOAP with C# Pin
Zahid Ajaib3-Sep-07 1:14
Zahid Ajaib3-Sep-07 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.