Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Step1: Get input from user
- for ( x = 1, x <= 1; ) /* Start a loop for error checking */
- {
- printf("Please enter N > (an integer) ");
- scanf("%d", &N);
- if ( N <= 0 )
- {
- printf ("Please input a number greater than 0\n");
- continue;
- }
- /* Place your loop increment here */
- x++;
- } /* End your loop */
Advertisement
Add Comment
Please, Sign In to add comment