Tuesday 10 January 2012

#include<iostream.h>
#include<conio.h>

void main()
{
int vi, t,a;
float  s;
   cout<<"Enter value for velocity:";
   cin>>vi;
   cout<<"Enter value for time:";
   cin>>t;
   cout<<"Enter value for a:";
   cin>>a;
   s=vi*t+1/2*a*t*t;
  
   cout<<"Distance covered by the object:"<<s;
  getch();
  }
Dear Student here is first example of C Plus Plus Program hopefully you must do practice of this program




#include<iostream.h>
#include<conio.h>
int main()
{
    //   This line is the example of single line comments
     cout<<"Hello Students";
  getch();
  }