I'm a newbie here and still studying. Im just wondering if there's anyone around here that can help me to do the program. The problem given to me by our professor is to get the perimeter and area of a circle. Only radius will be type by the user then it will automatically compute for the perimeter and area. I don't have problem in these. My problem is that we need to put the answers inside the box AND I DON'T KNOW HOW TO DO THE DAMN BOX. This is how it should appear: ****** RADIUS****** * * * * * * ****************** ******AREA****** ******PERIMETER****** * * * * * * * * * * * * **************** ******************** Can anyone help me how to write these in C++?
I got your problem...use gotoxy() function to draw characters with desired positions..get back to me for more help....
Is this u r looking for? [/CODE]#include<stdio.h> #include<conio.h> main(){ int x,y,z; char f; printf("ENTER A NUMBER"); scanf("%d",&z); printf("\n\n"); for(x=0;x<z;x++){ for(y=0;y<z;y++){ printf("*");} printf("\n"); } getch(); } [/CODE]