For an input n write a program that outputs all composite nu
For an input n, write a program that outputs all composite numbers less than n. (for example, with input 12, your program should print \"4, 6, 8, 9, 10.\") Again, don\'t sweat small things like commas - the point is to logically find which numbers are composite. int main() { int i,n,k,factor; printf(\"Enter the number:\"); scanf(\"%d\",&n); for(i=1;i1) { printf (\"%d ,k\"); } } return 0; }
Solution
include