标签:mamicode oid png main The std void a* ima
#include<stdio.h> int main() { printf("201983270555"); return 0; }
#include<stdio.h> int product(int,int); int main (void) { int x,y,s; scanf("%d%d",&x,&y); s=product(x,y); printf("The mul is:%d",s); return 0; } int product(int a,int b) { int mul; mul=a*b; return mul;
#include <stdio.h> int main() { int a=5,b=7,c=100,d,e,f; d=a/b*c; e=a*c/b; f=c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0; }
#include<stdio.h> int main() { int a=5,b=8; printf("a++=%d\n",a++); printf("a=%d\n",a); printf("++b=%d\n",++b); printf("b=%d\n",b); return 0; }
#include<stdio.h> int main() { int a=5,b=8,c=8; printf("%d,%d,%d,%d\n",a==b&&a==c,a!=b&&a!=c,a>=b&&a>=c,a<=b&&a<=c); printf("%d,%d\n",a<=b||a>=c,a==b||b==c); printf("%d,%d,%d,%d\n",!(a==b),!(a>=b),!(a>=c),!(a<=b)); return 0; }
很容易打错,太慢了,慢慢练。
标签:mamicode oid png main The std void a* ima
原文地址:https://www.cnblogs.com/feixiangkonshuai/p/11707651.html