Little Elephant was fond of inventing new games. After a lot of research, Little Elephant came to know that most of the animals in the forest were showing less interest to play the multi-player games.Little Elephant had started to invent single player games, and succeeded in inventing the new single player game named COIN FLIP.
In this game the...
Thursday, 29 March 2018
Saturday, 24 March 2018
#include<iostream.h>
#include<conio.h>
#include<math.h>
#include<stdio.h>
void main()
{
int a[20][20],i,j,n;
clrscr();
cout<<"Enter Number :";
cin>>n;
int count=1;
int round=ceil((double)n/2);
for(i=0;i<round;i++)
{
for(j=i;j<=n-i-1;j++)
{
a[i][j]=count++;
}
...
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void main()
{
int i,j,n;
clrscr();
cout<<"Enter Number :";
cin>>n;
for(i=1;i<=n*2;i++)
{
for(j=1;j<=n*2;j++)
{
if(i+j<=n*2)
{
cout<<" ";
}
else if(i<=n && i+j>=n*2+1 || i>=n && j<=n...
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<ctype.h>
#include<process.h>
#include<stdlib.h>
struct lib
{
int bid,rent,qun,year;
char bname[20],author[20],publi[20];
}s;
struct staff
{
char fname[10],mname[10],lname[10],mno[11],email[40],gender,jdate[10];
int age,otp;
}se;
struct member
{
...
Program To Print Particular Line From File.
#include<fstream.h> #include<conio.h> #include<stdlib.h> void main() { ifstream fin; int count=0,num,l=1; char ...
