loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7564095539262308","path":"main.c","file":{"path":"main.c","content":{"asEncoding":{"base64":"Ly8gQyBQcm9ncmFtIHRvIGRlbW9uc3RyYXRlIHRoZSB3b3JraW5nIG9mIGxvZ2ljYWwgb3BlcmF0b3JzCgojaW5jbHVkZSA8c3RkaW8uaD4KaW50IG1haW4oKQp7CiAgICBpbnQgYSA9IDUsIGIgPSA1LCBjID0gMTAsIHJlc3VsdDsKCiAgICByZXN1bHQgPSAoYSA9PSBiKSAmJiAoYyA+IGIpOwogICAgcHJpbnRmKCIoYSA9PSBiKSAmJiAoYyA+IGIpIGVxdWFscyB0byAlZCBcbiIsIHJlc3VsdCk7CgogICAgcmVzdWx0ID0gKGEgPT0gYikgJiYgKGMgPCBiKTsKICAgIHByaW50ZigiKGEgPT0gYikgJiYgKGMgPCBiKSBlcXVhbHMgdG8gJWQgXG4iLCByZXN1bHQpOwoKICAgIHJlc3VsdCA9IChhID09IGIpIHx8IChjIDwgYik7CiAgICBwcmludGYoIihhID09IGIpIHx8IChjIDwgYikgZXF1YWxzIHRvICVkIFxuIiwgcmVzdWx0KTsKCiAgICByZXN1bHQgPSAoYSAhPSBiKSB8fCAoYyA8IGIpOwogICAgcHJpbnRmKCIoYSAhPSBiKSB8fCAoYyA8IGIpIGVxdWFscyB0byAlZCBcbiIsIHJlc3VsdCk7CgogICAgcmVzdWx0ID0gIShhICE9IGIpOwogICAgcHJpbnRmKCIhKGEgPT0gYikgZXF1YWxzIHRvICVkIFxuIiwgcmVzdWx0KTsKCiAgICByZXN1bHQgPSAhKGEgPT0gYik7CiAgICBwcmludGYoIiEoYSA9PSBiKSBlcXVhbHMgdG8gJWQgXG4iLCByZXN1bHQpOwoKICAgIHJldHVybiAwOwp9"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// C Program to demonstrate the working of logical operators

#include <stdio.h>
int main()
{
    int a = 5, b = 5, c = 10, result;

    result = (a == b) && (c > b);
    printf("(a == b) && (c > b) equals to %d \n", result);

    result = (a == b) && (c < b);
    printf("(a == b) && (c < b) equals to %d \n", result);

    result = (a == b) || (c < b);
    printf("(a == b) || (c < b) equals to %d \n", result);

    result = (a != b) || (c < b);
    printf("(a != b) || (c < b) equals to %d \n", result);

    result = !(a != b);
    printf("!(a == b) equals to %d \n", result);

    result = !(a == b);
    printf("!(a == b) equals to %d \n", result);

    return 0;
}