Hello my name is Kepal, this is my first post and I am taking my first programming class which is Intro to C. Long story short I am having trouble with loops and how to find the factors of a certain number that is imputed with a certain amount of test cases that is entered first. This is what I have, any help to the algorithms or functions to factorize a number for each test case?
Code:#include <stdio.h> int main() { int T, N, a, b, curCase; scanf( "%d", &T); curCase = T >=1; scanf("%d", &N); for(curCase = 1, curCase <=1, curCase++); printf("Case %d: %d\n", curCase ,N); printf("(%d,%d\n)" , a, b); printf("\n") return 0; }



LinkBack URL
About LinkBacks



