I'm currently learning basic level c++ in college (Just started).
I'm wondering, is this a good layout?
Or would it be better to just leave everything as is?Code:#include<iostream> #include<conio.h> using namespace std; void main(void) { float radius, height, volume, surfacearea, sumone, sumtwo; cout<<"Please enter Radius "; cin>>radius; cout<<"Please enter Height "; cin>>height; volume=3.142*radius*radius*height; sumone=2*3.142*radius*radius; sumtwo=2*3.142*radius*height; surfacearea=sumone+sumtwo; cout<<"Volume "<<volume<<endl; cout<<"Surface Area "<<surfacearea<<endl; getch(); }
Edited by Catzsy (Forum Super Moderator): Thread moved from 'Technology Discussion ' to here as probably more suitable






Reply With Quote




