For loop in c problem
here's the code.can someone tell me what's the problem with this?
#include <stdio.h>
int main() { int a; for (a=0,a<=100; a = a + 10;printf("%4d degrees F = %4d degrees C\n", a,(a - 32) * 5/9)); }
int main() { int a; for (a=0,a<=100; a = a + 10;printf("%4d degrees F = %4d degrees C\n", a,(a - 32) * 5/9)); }
5 comments
[ 3.2 ms ] story [ 14.0 ms ] threadYou have a comma after a=0.