/* * Write a program that asks the user for 2 numbers */ #include int main(void) { int i; // counter int lesser; int greater; int digit1=0; int digit2=0; printf("Enter a value: "); scanf("%d", &digit1 ); printf("Enter a value: "); scanf("%d", &digit2 ); lesser = digit2; greater = digit1; if ( greater < lesser ) { greater = digit2 ; lesser = digit1 ; } for ( i=lesser; i <= greater; i=i+2 ) { printf("%d ", (i*i) ); } printf("\n"); return 0; }