This is true because it serves them better - doing this they can save money in the long run and also gain a good standing in the eyes of their customers. But most importantly, through theiy, they're effectively helping the environment.
Answer:
We can give the any integer value between 10 to 100 then it display the message "That number is acceptable."
Explanation:
In the given code the "number" variable takes an user input via cin .After taking user input it check the condition of if block that the user input is between the range of 10 to 100 .if this condition is true then the statement of if block will be executed i.e That number is acceptable otherwise else block will be executed That number is not acceptable.
following are the code in c++
#include <iostream> // header file
using namespace std;
int main() // main
{
int number; // variable
cin >> number; // taking input
if (number > 10 && number < 100) // if block
cout << "That number is acceptable.";
else
cout << "That number is not acceptable.";
return 0;
}
Output:
66
That number is acceptable.
456
That number is not acceptable.
Answer:
Output:
123456
123456
123456
123456
123456
123456
Explanation:
C Code:
#include <stdio.h>
int main() {
int n,i,j;
printf("Gimme a decimal value to use as n:");
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=1;j<=n;j++){
printf("%d",j);
}
printf("\n");
}
return 0;
}
Equivalent assembly program:
.LC0:
.string "Gimme a decimal value to use as n:"
.LC1:
.string "%d"
main:
push rbp
mov rbp, rsp
sub rsp, 16
mov edi, OFFSET FLAT:.LC0
mov eax, 0
call printf
lea rax, [rbp-12]
mov rsi, rax
mov edi, OFFSET FLAT:.LC1
mov eax, 0
call scanf
mov DWORD PTR [rbp-4], 0
.L5:
mov eax, DWORD PTR [rbp-12]
cmp DWORD PTR [rbp-4], eax
jge .L2
mov DWORD PTR [rbp-8], 1
.L4:
mov eax, DWORD PTR [rbp-12]
cmp DWORD PTR [rbp-8], eax
jg .L3
mov eax, DWORD PTR [rbp-8]
mov esi, eax
mov edi, OFFSET FLAT:.LC1
mov eax, 0
call printf
add DWORD PTR [rbp-8], 1
jmp .L4
.L3:
mov edi, 10
call putchar
add DWORD PTR [rbp-4], 1
jmp .L5
.L2:
mov eax, 0
leave
ret
Input:
6
The program was first written with a c code, anf and subsequently translated to an assembly language.
Answer:
a number that is less than the value assigned to the particular text box
Explanation:
The TabIndex is a general attribute that is widely used for HTML elements. It allows the professionals to design and customized how a document can be viewed. In order to assign a TabIndex value to a particular text box, it is recommended that the the number is relatively less than the assigned value in the particular text box.
Answer: B) Parent-to-child