m
 
   Colleges and Courses  |  College Admissions  |  Campus Life  |  Academic Projects  |  Exam Notifications  |  Jobs Abroad  |  Discussions  |  Home
  IGNOU ASSIGNMENTS :


Google
 
PROBLEM SOLVING AND PROGRAMMING
COURSE CODE: MCA 011

 Code Submitted by: Vishal Pai 1 | 2 | 3 | 4 | 5 Submit your Code
   
Assignments
C Programming
SAD
C Programing
Compu Networks
Compu Architecture
Question Papers
Intro to Software
June 1995
Dec 1995
June 1995
Dec 1996
Dec 1997
Dec 1999
June 2000
Dec 2000
June 2001
Jan 2001
Dec 2002
Database Management
June 1995
Computer Architecture
June 1997
Dec 1997
June 1998
Dec 1998
June 1999
Dec 1999
June 2000
Dec 2000
Jan 2001
June 1995
Dec 2001
June 2002
Computer Architecture
June 1996
Dec 1996
June 1997
Dec 1997
June 1999
June 1998
Networking
June 1995
Dec 1999
June 2000
Dec 2000
Jan 2000
June 2001
Dec 2001
June 2002
Finance & Accounting
Dec 1996
June 1997
Dec 1997
June 1998
Dec 1998
June 1999
Dec 1999
June 2000
Dec 2000
June 2003
Numerical & Programming
June 2001
Dec 2001
Operations Research
June 1995
June 2002
June 2001
Software Engineering
Dec 2001
Dec 2002
Question 1

#include <stdio.h>
#include <math.h>
void main()
{
int i,r,s;
char ch;
FILE *ak;
clrscr();
ak=fopen("c:\\ak.txt","w");
if(ak==NULL)
{
  printf("File cann't open");
  fclose(ak);
  getch();
  exit(0);
}
printf("Enter the number of random to be generated");
scanf("%d",&s);
for(i=1;i<=s;i++)
{
  r=rand();
  fprintf(ak,"%d\n",r);
}
fclose(ak);
getch();
}

Answer for 8080 Assignment
   
TOP