. ¦3<RELATIVISM
is there any guide toinstall packages soyou can run ie locally
. ¦3<RELATIVISM
given I do not use,and boycot gatehub
. ¦3<RELATIVISM
take for example the separation method
. ¦3<RELATIVISM
given some elements might already be in the right position
. ¦3<RELATIVISM
but yeah still learning though
. ¦3<RELATIVISM
.
. ¦3<RELATIVISM
.
. ¦3<RELATIVISM
I had a question
. ¦3<RELATIVISM
why in this simple script
. ¦3<RELATIVISM
my output seams to be tabed
. ¦3<RELATIVISM
"#include <stdio.h>
int main(void)
{
int a = 3;
int v;
v = a;
printf("v is %i\n", v);
}"
. ¦3<RELATIVISM
output is:. ¦3<RELATIVISM
and not:. ¦3<RELATIVISM
? any thoughs on that.
. ¦3<RELATIVISM
i tried again now and it doesnt seam to happend anymore strange, maybe was a bug I guess
. ¦3<RELATIVISM
.
. ¦3<RELATIVISM
.
. ¦3<RELATIVISM
also does anybody know with the free function
. ¦3<RELATIVISM
after the use of malloc that is,is there any argument to select all varibles that used allocation?
int main(void)
{
int i, j, sum1, sum2, sum, card;
i = 0;
j = 0;
sum1 = 0;
sum2 = 0;
sum = 0;
long n, temp;
n = get_long("Number: ");
temp = n;
while (n > 0)
{
i = n%10;
n = n/100;
/ if (n/100 == 0)
{
card = n;
} /
sum1= sum1 + i;
}
i = 0;
n = temp/10;
while (n > 0)
{
i = n%10;
n = n/100;
i = i * 2;
if (i/10 > 0)
{
j = i%10;
i = i/10;
i = i + j;
}
sum2 = sum2 + i;
}
sum = sum1 + sum2;
if (sum%10 == 0 && n > (10^13))
{
/* if (card == 34 || card == 37)
{
printf("AMEX\n");
}
else if (card == 51 || card == 52 || card == 53 || card == 54 || card == 55)
{
printf("MASTERCARD\n");
}
else
{
printf("VISA\n");
}
*/
n = temp;
if (n % (10^13) == 34 || n % (10^13) == 37)
{
printf("AMEX\n");
}
else if (n % (10^14) <= 55 && n % (10^14) >=51)
{
printf("MASTERCARD\n");
}
else if (n % (10^12) == 4 || n % (10^15) == 4)
{
printf("VISA\n");
}
else
{
printf("INVALID\n");
}
}
else
{
printf("INVALID\n");
}
}
. ¦3<RELATIVISM
http://paste.debian.net/
. ¦3<RELATIVISM
as for you question sorry i cannot help you Imstill learning as well
. ¦3<RELATIVISM
have you tried using cs50 help lib?