Upload
ankur-rajput
View
223
Download
0
Embed Size (px)
DESCRIPTION
C++ notes
Citation preview
****************** C++ PROGRAMS ****************===========================================================================------------------------- SIMPLE C PROGRAM -------------------------------#include
#include
void main()
{
float a;
clrscr();
a=50;
printf("the value of a is:%f",a);
getch();
}
======================================================================#include
#include
void main ()
{
clrscr ();
printf("\n division operation Results " );
printf("\n two integers (5 &2) : %d ", 5/2);
printf("\n one int & one float (5.5 & 2) : %g ", 5.5/2);
printf("\n two integers (5 & 2) : %g ",(float)5/2);
getch;
}
======================================================================
******************************* C++ PROGRAM **************************#include
#include
void main()
{
clrscr();
cout