Skip to content
Snippets Groups Projects
Commit 6a14798b authored by Bjon's avatar Bjon
Browse files

ASD

parents b6dd410d 9eb49de6
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,11 @@
int main()
{
unsigned int num = 1;
while(num<=10)
//Please write a while loop to count 1 to 10, and print out every number one per line.
for(unsigned int i=1; i<=10; i++)
{
printf("%d\n", num);
num++;
printf("%d\n", i);
}
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment