Skip to content
Snippets Groups Projects
Commit 546177a3 authored by Alan Zhu's avatar Alan Zhu
Browse files

counting for

parent 735c06a8
No related branches found
No related tags found
No related merge requests found
#include <stdio.h>
int main()
{
//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", 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