260 views
4 votes
You will write a flowchart and C code for a program that does the following:Asks a user for a number.Multiplies that number by itself.Outputs the number and the result, using descriptive language to tell the user what they're seeing.

User Bon Ryu
by
8.1k points

1 Answer

4 votes

Answer:

C code for the program is given below:

#include <stdio.h>

int main(void) {

int one, multiply;

printf("Enter a number:");

scanf("%d",&one);

printf("The value of number1 is %d\\",one);

multiply = one * one;

printf("%d multiplied by %d is %d",one,one,multiply);

return 0;

}

Step-by-step explanation:

User Nitza
by
9.0k points