> C Programming: Need help.?

C Programming: Need help.?

Posted at: 2014-12-18 
watch these videos

https://buckysroom.org/videos.php?cat=14

he goes pretty slow and explains things pretty well

video 25, 26 and 27 cover loops

he has videos on many languages

https://buckysroom.org/videos.php

The difference between while and do-while, is that a do-while loop will always execute at least once.

#include

int main(int argc, const char * argv[]) {

int input;

printf("Please enter a number: ");

scanf("%d", &input);



int i = 1;

while (i <= input) {

printf("%d...",i);

++i;

}



printf("\n");



int j = 1;

do {

printf("%d...",j);

++j;

} while (j <= input);



return 0;

}

I need to create an output of the following. I tried getting a tutor and no one will respond. This isn't the actual assignment, just a sample problem out of the book.

Using a while loop:

1...2...3...4...5...

Using a do loop:

1...2...3...4...5...

done.