Thursday 18 July 2013


#include "stdafx.h"
#include "conio.h"
#include "iostream"
#include "stdio.h"

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
int n,n1,n2,c;
n=0;
cout<<"enter range";
cin>>n1>>n2;
for(c=n1;c<=n2;c++)
n=n+1;
cout<<n;
getch();
}

0 comments :

Post a Comment