fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=1, b=a%10;
  5. int sum=0;
  6.  
  7.  
  8. while( a!=3a , a!=5a , b>=6 )
  9. {
  10. sum = sum + a;
  11. a = a + 1;
  12. }
  13.  
  14. printf("1から100の合計は%dです。 \n", sum);
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 5276KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:8:12: error: invalid suffix "a" on integer constant
  while( a!=3a , a!=5a , b>=6 )
            ^~
prog.c:8:20: error: invalid suffix "a" on integer constant
  while( a!=3a , a!=5a , b>=6 )
                    ^~
prog.c:8:15: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  while( a!=3a , a!=5a , b>=6 )
               ^
prog.c:8:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  while( a!=3a , a!=5a , b>=6 )
                       ^
stdout
Standard output is empty