This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<dos.h> | |
#include<conio.h> | |
#include<stdlib.h> | |
void main() | |
{char far *p; | |
char w[100]; | |
int i,j,k; | |
int m=10; | |
p=(char far*) 0xb8000000L;//starting address of vdu memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
#include<alloc.h> | |
/*structure containing a data part and a link part*/ | |
struct node | |
{int info; | |
struct node *link; | |
}; | |
struct node* create_list(void); | |
void split_list_into_2(struct node **q); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
int main() | |
{int pdt,rem=0,count,no; | |
long int x=0; | |
long int res[60000]; | |
long register int i; | |
printf("enter the number whose factorial has to be calculated"); | |
scanf("%d",&no); | |
for(i=0;i<60000;i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() | |
{ | |
using namespace std; | |
int num=0,num1=1,num0=0,sum=0; | |
while(num<=4000000) | |
{num=num1+num0; | |
num0=num1; | |
num1=num; | |
if(num%2==0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//solution for part a | |
#include<stdio.h> | |
#include<conio.h> | |
int main() | |
{int input,i; | |
printf("Enter the number\n"); | |
scanf("%d",&input); | |
for(i=1;i<=input;i++) | |
{if((i%3||i%5)==0) | |
printf("Whazaa\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
int main() | |
{FILE * filepointer; | |
int v,i; | |
filepointer=fopen("input.txt","a+"); | |
for (i=0;i<200;i++) /*getting numbers in range 0 to 50 randomly*/ | |
{v=rand()%50; | |
fprintf(filepointer,"%d ",v);} |