04-24-2011, 04:48 PM
Dear student!
Correct program 1 is
#include<iostream.h>
main()
{
cout<< "How are u? welcome to my program";
system("pause");
}
Correct program 2 is
#include<iostream.h>
main()
{
int age1, age2;
age1=25;
age2=15;
if(age1>age2)
{
cout<<"person 1 is older than 2nd one";
system("pause");
}
}
Try these programs and compare them with posted programs to check your mistakes.
Correct program 1 is
#include<iostream.h>
main()
{
cout<< "How are u? welcome to my program";
system("pause");
}
Correct program 2 is
#include<iostream.h>
main()
{
int age1, age2;
age1=25;
age2=15;
if(age1>age2)
{
cout<<"person 1 is older than 2nd one";
system("pause");
}
}
Try these programs and compare them with posted programs to check your mistakes.
