mirror of
https://github.com/A2osX/A2osX.git
synced 2024-06-17 07:29:29 +00:00
30 lines
521 B
Plaintext
30 lines
521 B
Plaintext
|
NEW
|
|||
|
AUTO 3,1
|
|||
|
#include <stdio.h>
|
|||
|
|
|||
|
int main(int argc, char *argv[])
|
|||
|
{
|
|||
|
puts("Press a key");
|
|||
|
char c=getchar();
|
|||
|
printf("char=%d\r\n", c);
|
|||
|
if (c == 13)
|
|||
|
{
|
|||
|
puts("ENTER");
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
puts("Not ENTER");
|
|||
|
}
|
|||
|
|
|||
|
int i=0;
|
|||
|
while (i++ < 10) {
|
|||
|
if (i==5) continue;
|
|||
|
printf("count1=%I\r\n", i);
|
|||
|
}
|
|||
|
do {
|
|||
|
printf("count2=%I\r\n", i);
|
|||
|
} while (i-- > 0);
|
|||
|
}
|
|||
|
MAN
|
|||
|
TEXT root/ctest/testif.c
|