1. sorry it happen when i pasted it i have it indented nice in a old Dos IDE
2. yes but that fuction is only for printing to the screen even if i do start i=0 the outcome is : AB,AC ....
3. I know...
Type: Posts; User: samsung
1. sorry it happen when i pasted it i have it indented nice in a old Dos IDE
2. yes but that fuction is only for printing to the screen even if i do start i=0 the outcome is : AB,AC ....
3. I know...
i have to make a program that reads m,n from the keyboard.
i have :
char letters[]={'A','B','C','D','E','F','G','H','I','J','K'}
the program is going to make commutations of those letters.
if...
thanks for all your help .
how you think the accurate program should look ?
1 more thing Y is integer and X is float
Y = Y*X is this allowed?
i mean does it convert X to integer
lets say if i enter the X 3,14 ?
what happends then with it?
actually don't :).
can you please explain?
i enter a real number .
i enter a natural number.
it does a loop . the N number specify the number of times the loop is run?
if N <0 it doesn't execute...
Let's say you enter tge real number X=3 and the natural nr N=10.
59049 is the result does it look ok ?
i don't think so :)
i have to write a program after the pseudocode that i already have :
READ X
READ N
Y <-- 1
Counter <-- N
WHILE Counter > 0
Y <-- Y*X
Counter <-- Counter-1
that is the compiler we use .
at home i use DEV-C++ . i make the code in DEV i compile it run it it's all ok.
but when i load it in borland it start giving me errors .
so that is why i must use...
yes but i am using the older version of borland 3.1 for DOS if i am not mistaking .
and it gives compile error's if i don't use it like this.
any advices , don't need code just tell me what i...
thanks for your reply it worked like charm :)
have to write code that lets the user enter a 5 digit's number.
after that it must remove the 3th digit from the number and printf the rest of the number
this is what i written but it's not good ,...