1.加法计算示例
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d;
a=123456789;
b=43214321;
c=45678;
d=(a+b)*c;
printf("%d",d);
system("pause");
return 0;
}
2.scanf语句运用(听)
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
scanf("%d%d",&a,&b);
c=a+b;
printf("%d+%d=%d",a,b,c);
system("pause");
return 0;
}
3.color语句
#include <stdio.h>
#include <stdlib.h>
int main()
{
system("color a3");
printf("wa wa wa");
system("pause");
return 0;
}
C语言基础知识:1
最新推荐文章于 2024-07-10 22:49:54 发布