- Spoiler
Wdingdong wrote:I didn't understand this: "2 first multiple of 3 numbers."
I express myself like an arse. I meant the 2 first numbers that are multiple of 3.
| Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita |
Wdingdong wrote:I didn't understand this: "2 first multiple of 3 numbers."


m0skit0 wrote:And why not c++
Wdingdong wrote:Ascending sorting
Wdingdong wrote:Check Equal Strings(Case Sensitive)
Wdingdong wrote:Check Equal Strings(Not Case Sensitive)
if(s1[i] > s2[i] && s1[i] - 32 != s2[i]) //The difference between value of upper and lower case is 32
count++;
else if(s2[i] > s1[i] && s2[i] - 32 != s1[i])
count++;Wdingdong wrote:Three First Multiple of 3
Wdingdong wrote:Matrix Addition
Wdingdong wrote:I'm stuck with checking the substring. It'd be good if you help a little


m0skit0 wrote:[*]Write a program that given an array of 10 numbers, prints only the even numbers.
[*]Write a program that given an array of 10 numbers, prints only the odd positions.
[*]Write a program that given an array of 10 numbers, prints only the 2 first multiple of 3 numbers.
[*]Write a program that given one string, prints its length.
main() if (array[a] % 2 == 0)
printf("%d\n", array[a]);for (a = 0; a <= 9; a++)0xB16B00B5 wrote:Write a program that given an array of 10 numbers, prints only the odd positions.
0xB16B00B5 wrote:Oh, and if the "a+1" looks weird, I'm just expirementing with stuff.
0xB16B00B5 wrote:I don't know (I have a horrible memory so sorry if you've already covered that) how to actually print the position from the array.
0xB16B00B5 wrote:Tried getting a bit creative for this one.
0xB16B00B5 wrote:Not sure if that's what you wanted.. correct me if I'm wrong.
#include <stdio.h>
int main()
{
char* target = "This is the string you have to calculate its length";
int length = 0;
// Put your code here!
print("The length of the target string is %d\n", length);
return 0;
} while (getchar() != EOF)
a++;



m0skit0 wrote:Why you keep comparing characters when you already know they are not equal? Waste of processing time.
Wdingdong wrote:Is this okay?


Users browsing this forum: No registered users and 1 guest