当前位置:网站首页>Noi OJ 1.2 conversion between integer and Boolean C language

Noi OJ 1.2 conversion between integer and Boolean C language

2022-06-23 10:28:00 chd44

#include<stdio.h>
int main(){
int a;
bool b;
scanf("%d",&a);
b=a;
a=b;
printf("%d",a);
return 0;
}

notes : Just follow the requirements of the topic .

If the concept of Boolean is not clear , You can search for , In short, it is a variable that represents true and false ( Anyway, it's OK to follow the requirements of the topic , Booleans are not currently available ).

原网站

版权声明
本文为[chd44]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206231012356820.html