it is about homework but i do not understand what !c is... please help...thanks....
Code:#include <stdio.h> int main(){ int n=10; float a=2, p=3, s=5; int c=0; while ( n>0 ){ c = n%2; if (!c){ // what does !c mean? s = s + p; }else{ p = p * a; } n = n - 1; } printf("n: %d, a: %f, p: %f, s: %f, c: %d\n", n, a, p, s, c); return 0; }