Skip to content

Conversation

@akashnagpal1123
Copy link
Contributor

#include<stdio.h>
int main()
{
int n1=0,n2=1,n3,i,number;
printf("Enter the number of elements:");
scanf("%d",&number);
printf("\n%d %d",n1,n2);//printing 0 and 1
for(i=2;i<number;++i)//loop starts from 2 because 0 and 1 are already printed
{
n3=n1+n2;
printf(" %d",n3);
n1=n2;
n2=n3;
}
return 0;
}

Gaurav9876543210 and others added 29 commits October 12, 2019 13:40
hi hello
print statement used
print statement used
Create multiplicationofnumbers.cpp
This program swaps 2 elements using  call by reference method in C language
Swapping Of elements using Call by reference
prubhtej upload request 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants