#include <stdio.h>
void main()
{
int a = 1, b = 1;
int aplus = a ++ ,plusb = ++b ;
printf( " a aplus b plusb \ n ");
printf( "%1d %5d %5d %5d \n ", a , aplus ,b ,plusb);
}
四种类型的语句四种类型的语句
#include <stdio.h>
#define MAX1 100
void main()
{
int count , sum ;
count =0;
sum =0;
while( count ++ <20 ) {
sum += count;
}
printf("sum = %d \n ",sum);
}
网友评论