Slider

Thursday, 1 December 2016

Assignment of c++ Programming

Q.No.12 Write a program to input 3 digits number and displays in digits in separator lines?
# include<iostream.h>
# include<conio.h>
void main ()
{
int 1,2,3:
clrscr():
cout<<"/n Enter first number"<<1:
cout<<"/n Enter second number"<<2:
cout<<"/n Enter third number"<<3:
getch()
}
Q.No.13 Write a program to calculate the volume of cube by taing measures from user?
# include<iostream.h>
# include<conio.h>
Void main()
{
float vol,l,w,h:
clrscr():
cout<<"Enter the value of length"<<l:
cout<<"Enter the value of width"<<w:
cout<<"enter the value of heigth"<<h;
volume=l*w*h
cout<<"volume"<<setprecision(2)<<volume<<endl:
getch():
}

0 comments:

Post a Comment