14 years ago
Jump to Forum..
- Boddunan.com Updates
- - Announcements
- - Contests & Rewards
- - Group Discussions
- Discussions
- - General Discussions
- - Improving English Writing Skills
- - Q n A - Find answers to your questions
- - Daily Dose
- - Topics of Interest
- - - Current Affairs & Latest News
- - - Education & Learning
- - - Humor & Jokes
- - - Movies & Entertainment
- Your Vote Counts
- - Feedback
- - Suggestion Box
- Shoutbox
- - Introduce Yourself
- - The Lounge
- - Help
- - Testimonials
Like it on Facebook, Tweet it or share this topic on other bookmarking websites.
14 years ago
while programming, many a times getline command just doesn't work. The program just skips that line. But if I use cin, everything works fine. I felt this might be because I used system("clear") function in the program. Could it because of that? Or could it be because I used goto in that program?
14 years ago
program to generate fibonacci series using recursion in c++
#include<iostream.h>
void Fibonacci(int range)
{
static int a=1,b=1,c=1;
if(range>0)
{
c=a+b;
b=a;
a=c;
cout<<"\t"<<c;
Fibonacci(range-1);
}
}
void main()
{
int range;
cout<<"Enter Range";
cin>>range;
Fibonacci(range);
}
#include<iostream.h>
void Fibonacci(int range)
{
static int a=1,b=1,c=1;
if(range>0)
{
c=a+b;
b=a;
a=c;
cout<<"\t"<<c;
Fibonacci(range-1);
}
}
void main()
{
int range;
cout<<"Enter Range";
cin>>range;
Fibonacci(range);
}
14 years ago
can any write program for this??
1)Write a program that takes a 5 digit number and calculates 2 power
that number and prints it.the concept of this program is it must take exactly and then we must calculate 2 power of 5 digit number
1)Write a program that takes a 5 digit number and calculates 2 power
that number and prints it.the concept of this program is it must take exactly and then we must calculate 2 power of 5 digit number
You do not have permissions to reply to this topic.
Related Topics