Updated: Feb 8, 2023
top of page
Code Craze - Feb 3, 2023
- 1 min read
"#include" is a preprocessor directive in the C and C++ programming languages. It is used to include code from other files, typically library files, into the current file being compiled.
For example:
#include <stdio.h>
#include <conio.h>
This line tells the compiler to include the contents of the "stdio.h" and "iostream" library, which contains definitions for standard input and output operations.
In this context, angle brackets indicate that the file being included is part of the standard library, while quotes indicate that the file is part of the local project or a user-defined library.
1 view0 comments
Code Craze - Feb 2, 2023
- 1 min read
#include <stdio.h>
int main() {
int n1=0,n2=1,temp;
int n,i;
printf("\nEnter the range : ");
scanf("%d",&n);
printf("\n%ld %ld ",n1,n2);
for(i=2;i<n;i++)
{
temp=n1+n2;
n1=n2;
n2=temp;
printf(" %ld",temp);
}
}
0 views0 comments
bottom of page