Make a C code to print the multiplication table of 7. Use a repetition structu

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 7PP
icon
Related questions
Question
100%

1- Answer the items (Typed)

A) Make a code in C to detect that the Mario caught a mushroom. Set the x position of the shroud and the x position of the mushroom. And use conditional to check the mushroom capture event. Also create a variable mário size, which will have a value of 1 for mario grante, and 0 for small mário.
B) Make a C code to print the multiplication table of 7. Use a repetition structure.

Expert Solution
Table of 7

#include <stdio.h>

int main()
{
    int number = 7;
    printf("The multiplication table of 7\n");
    
    for(int i=1;i<=20;i++){
        printf("%d * %d = %d\n", i, number, i*number);
    }

    return 0;
}

 

 

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr