Simple Network Design With DNS Servers in Packet Tracer
fig. Simple network with DNS and FTP server
Continue reading »fig. Simple network with DNS and FTP server
Continue reading »#include<stdio.h>
#include<conio.h>
int hcfactor(int x,int y)
{
if(y==0)
return x;
else
return hcfactor(y,x%y);
}
void main()
{
int a,b,f;
printf("Enter two numbers:\n");
scanf("%d%d",&a,&b);
f=hcfactor(a,b);
printf("HCF of %d and %d is %d.",a,b,f);
getch();
}
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
int main()
{
int roll;
char name[20];
ofstream outf("madhav.txt"); //creates a file madhav.txt
cout<<"Enter name:";
cin>>name;
cout<<"Enter Roll No:";
cin>>roll;
outf<<"Name = "<<name;
outf<<"\nRoll No. = "<<roll;
outf<<endl;
cout<<"\nData successfully written to disk.\n";
outf.close();
const int LEN = 80;
char text[LEN];
ifstream infile("madhav.txt"); //file is opened for read operation
cout<<"\nThe data reading from file is:\n";
while(infile)
{
infile.getline(text,LEN);
cout<<endl<<text;
}
infile.close();
getch();
return 0;
}
-BY ROBORT FROST
Continue reading »You are welcome to my site!
Continue reading »