Answers for "c++ if and or operator"

C++
0

C++ if and

//C++

int a = 1;
int b = 2;

if (a == 1){
	std::cout << "a equals 1!";
}

if (b == 2){
	std::cout << "b equals 2!";
}

if (a == 1 && b == 2){
	std::cout << "a equals 1, and b equals 2!"
}
Posted by: Guest on June-20-2021
-1

or operator c++

section .text
   global main
extern printf

main:
   mov ebx,10 ; moving the intial time to ebx
loop:   push ebx ; value of first parameter
   push message ; value of second parameter
   call printf ; to outpur the result
   dec ebx ; decrementing the value stored in ebx by 1
   jnz loop ; if not equal to zero then a go to loop would be triggered
   add esp,80   ;clearing the stack
   ret

message   db   "Value = %d",10,0   

Here's the solution to your question, please provide it a 100% rating. Thanks for asking and happy learning!!
Posted by: Guest on July-26-2021

Browse Popular Code Answers by Language