0
what's wrong in this programm...i would convert a sentence in code ascii
#include<stdio.h> #include<string.h> #include<stdlib.h> int main () {char ch[100]; int a,i; gets (ch); for(i=0;i<strlen(ch);i++) a=ch[i]; { i++;} printf("le message cod est %d \n",a); return 0;}
1 Odpowiedź
0
for(i=0;i<strlen(ch);i++)
a+=ch[i]; // <- here;