Programming Lab Rep

Click here to load reader

  • date post

    09-Jul-2016
  • Category

    Documents

  • view

    214
  • download

    0

Embed Size (px)

description

Programs C++

Transcript of Programming Lab Rep

Program No. 1Write a program that input radius of sphere from the user. Calculates its volume and surface area using the formula Area=4and circumference=4/3 where pi=3.14

#include#include#define pi 3.14void main(){clrscr();float area,r,cir;coutr;area=4.0*pi*r*r;cir=4.0/(3.0*pi*r*r*r);cout