Showing posts with label armstrong number. Show all posts
Showing posts with label armstrong number. Show all posts

Sunday, 6 May 2012

Program Of Closing a File In C++

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

main()

{

    clrscr();

     char FirstName[30], LastName[30];

    int Age;

    char FileName[20];

    cout << "Enter the name of the file you want to open: ";

    cin >> FileName;



    Students >> FirstName >> LastName >> Age;

    cout << "\nFirst Name: " << FirstName;

    cout << "\nLast Name:  " << LastName;

    cout << "\nEnter Age:  " << Age;

    cout << "\n\n";


getch();

}


Thursday, 12 January 2012

Program To Find Armstrong Number In C++

#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int salary;
cout<<" enter salary=";
cin>>salary;
if(salary>=20000)
{
cout<<"\n manager";
}
else
{
cout<<"\n employee";
}
getch();
}