C语言的语法太枯燥了 换个写法
#include <stdio.h> #include<stdlib.h> #define end } #define if(x) if (x){ #define then #define while(x) while(x){ #define function(x) void function(x){ #define else }else{ #define sd scanf("%d",&x); #define s(a) scanf("%d",&a); #define p(a) printf("%d",a); #define main int main(){ #define pend system("pause");return 0;} #define var(a) int a; #define loop(x) for(i=0;i<x;i++){ #define arr(x) arr[x] //可以乱写的C语言,代码如下: function(int x) if (x > 5) then else end while (x <= 5) then end sd end main //从键盘输入5个整数。然后输出不为0的值 var (arr[10]) var (m) var (i) loop (5) s(arr(i)) end loop(5) if (arr(i)!=0 ) then p(arr(i)) end end pend
时间: 2024-10-29 19:12:18