为什么它会向我显示错误? [英] Why it is showing me error?

查看:49
本文介绍了为什么它会向我显示错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用示例If语句程序并且它显示错误。



请让我知道如何解决这个问题。



还建议我学习C编程的最佳网站。我是初学者......!



I am using a sample If statement program and it is showing me error.

Please let me know how to fix this.

Also suggest me a best website to learn C programming. I am a beginner...!

#include<stdio.h>
main()
{
    int a=15, b=20;
    if (b & gt; a){
        printf("b is greater");
    }
}





我的尝试:



我没有尝试任何我编写的程序,因为它是在W3网站上给出的。



What I have tried:

I tried nothing I written the program as it is given on W3 website.

推荐答案

在你不能使用的if大括号中所有这些运算符。

in the if braces you cant use all of these operators.
if( a & b ) 

是可能,或

if( a < b )

但不是两者兼而有之。以下是学习C ++ 的一些很好的教程。

but NOT both. Here is some good tutorial for Learning C++.


这篇关于为什么它会向我显示错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆