write an algorithm and flowchart to find square of a number
Answers
Answered by
20
Answer:
/*c program to calculate the square of number*/
#include<stdio.h>
int main()
{
double n,z;
printf("Enter any number : ");
scanf("%lf", &n);
z = n * n;
printf("Square of number %lf*%lf = %lf",n,n,z);
return 0;
}
The output of above program would be:
Enter any number : 25
Square of number 25*25 = 625
Flowchart of above C square number program:
Flowchart of square number C program
Figure : Flowchart for square number C program
PLS MARK AS BRAINLIEST
Attachments:
Answered by
0
Answer:- computer science
Attachments:
Similar questions