What's new

Closed Flowchart in this code

Status
Not open for further replies.

Strawberrry

Forum Veteran
Joined
Aug 2, 2016
Posts
1,598
Solutions
4
Reaction
633
Points
524
Good afternoon! Thank you for taking time to read this thread, I wanna know the flowchart of this code if you know It would be nice if you tell me about it
/* Just type the name of the symbol and its insides for example "Circle - Start" */

C:
#include <stdio.h>

int main()
{
    float radius, diameter, circumference, area;
   
    /*
     * Input radius of circle from user
     */
    printf("Enter radius of circle: ");
    scanf("%f", &radius);

    /*
     * Calculate diameter, circumference and area
     */
    diameter = 2 * radius;
    circumference = 2 * 3.14 * radius;
    area = 3.14 * (radius * radius);

    /*
     * Print all results
     */
    printf("Diameter of circle = %.2f units \n", diameter);
    printf("Circumference of circle = %.2f units \n", circumference);
    printf("Area of circle = %.2f sq. units ", area);

    return 0;
}
 
Naka lagay na po yung sagot sa comment line sa code gawin mo na lang flow chart i expect na naturo naman sa inyo yung flow chart so kaya mo na po yan
 
Oval - Start
Parallelogram - Input Radius
Rectangle - Calculate
Diameter = 2 * Radius
circumference = 2 * 3.14 * radius
area = 3.14 * (radius * radius)
Parallelogram - Print output
Oval - End

ganyan po pagkakaintindi ko. hehe newbie lang din po kasi ako dito sa c programming.
 
Oval - Start
Parallelogram - Input Radius
Rectangle - Calculate
Diameter = 2 * Radius
circumference = 2 * 3.14 * radius
area = 3.14 * (radius * radius)
Parallelogram - Print output
Oval - End

ganyan po pagkakaintindi ko. hehe newbie lang din po kasi ako dito sa c programming.
Ganyan po din sakin HAHAHAAH salamat nadin
 
Status
Not open for further replies.

Similar threads

Back
Top