C++ How To Program (Early Objects Version), Global Edition, With Access Card, 10 Ed
C++ How To Program (Early Objects Version), Global Edition, With Access Card, 10 Ed
10th Edition
ISBN: 9780134448848
Author: Paul Deitel, Harvey Deitel
Publisher: PEARSON
Students have asked these similar questions
True or​ False? In a VBA macro you have the following​ statements:   Dim word As String Dim x As Integer   word​ = "kodak" x​ = 1   If​ Left(word,2) =​ Right(word,2) Then x​ = x​ + 1 Else x​ = x​ - 1 End If   MsgBox word​ & x   Suppose​ "kodak" is replaced by​ "kayak". Then this macro will display​ "2"
so this is my code: # Define macros.macro print_str str    li $v0, 4    la $a0, str    syscall.end_macro .macro for index, start, end, interval, body    li index, startLoop:    blt index, end, Exit    body    addi index, index, interval    j LoopExit:.end_macro # Main program.datamsg: .asciiz "Here is the output: "space: .asciiz " "newline: .asciiz "\n" .text.globl main main:    # Print string    print_str msg        # Call macro with interval argument    for $t0, 10, 40, 4,        # Print current number        li $v0, 1        move $a0, $t0        syscall                # Print space if not last number        blt $t0, 38, PrintSpace        j ExitLoop    PrintSpace:        li $v0, 4        la $a0, space        syscall        j ExitLoop    ExitLoop:        # Print newline    li $v0, 4    la $a0, newline    syscall        # Exit program    li $v0, 10    syscall pls take another look and correct my errors, thanks
Write a c++  program to print the area of a square (Area = s2, where a is the length of s side which will be given during the run-time) A. Use a parameterized macro for finding the square of a number with symbol SQR B. Use a parameterized/nested macro for finding the area of the square with symbol AREA
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage