Initial commit: C language learning code
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
int a = 0;
|
||||
int b = 1;
|
||||
|
||||
while (++a>0)
|
||||
{
|
||||
;
|
||||
}
|
||||
printf("int的最大值是:%d\n", a-1);
|
||||
|
||||
while ((a=a/10)!=0)
|
||||
{
|
||||
b++;
|
||||
}
|
||||
printf("int的位数是:%d\n", b);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user