#include < stdio.h > int main(void) { int num1 = 10; int num2 = 20; int num3 = 30;
Do these do the same thing?. #include < stdio.h > int main(void) { int num[9] = {10,20,30,40,50,60,70,80,90} ; int calc=0, i ; for ( i =0;i<9;i++) { calc = calc+num [ i ]; } calc = calc/9; printf (“ calc = %d ”, calc ); }. #include < stdio.h >
500 views • 6 slides