untitled
My sites
Home
Plus One
Plus two
Your Voice
About Author
Brother's Site
First Home
Kerala Links
Indian Links
Indian Fonts
Site Submission
Thss,Mlpy
Plus One Programs
Index of programs:Set 3
Use of GOTO
Find number of times anumber is repeated in array
Ascending order sort of numbers
Find routs of quadratic equation
Whether number prime or not
<<
Previous
Next Page
>>
Program1:
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : For understanding GOTO ; loop statement replace Meant For: Plus One students,Kerala */ void main() { int i=1; F:if(i<=10) { cout<
Program 2:
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : To find the place where a number is repeated and how many times so Meant For: Plus One students,Kerala */ void main() { int n; cout<<"Enter the limit of array:"; cin>>n; int a[50]; for(int i=1;i<=n;i++) { cout<<"\n"; cout<<"Number"<<"["<
>a[i]; } cout<<"Enter the checking numbers:"; int c; cin>>c; int l=0; clrscr(); cout<<"Program aim[1]: Finding the places at which number is repeated:"; cout<<"\n\nProgram aim[2]: Printing the number of times number is repeated:"; cout<<"\n\n Found at places: "; for(i=1;i<=n;i++) { if(a[i]==c) { l=l+1; cout<<"\t"<
Program 3:
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : To sort a given list of numbers in ascending order Meant For: Plus One students,Kerala Hint : You can also sort in descending order by changing sign in if statement : REFER 1. */ void main() { int num[50],t,n,i,j; cout<<"\n Enter limit:"; cin>>n; for(i=1;i<=n;i++) { cout<<"\n Enter number:"; cin>>num[i]; } for(i=1;i<=n-1;i++) for(j=1;j<=n-i;j++) if(num[j]>num[j+1]) //REF 1: change sign { t=num[j]; num[j]=num[j+1]; num[j+1]=t; } cout<<"\n Number in ascending order\n"; for(i=1;i<=n;i++) cout<<"\t"<
Program 4:
#include
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : To find routs of a quadratic equation Meant For: Plus One students,Kerala */ void main() { clrscr(); float r1,r2,a,b,c,d; cout<<"Enter value of a:"; cin>>a; cout<<"Enter value of b:"; cin>>b; cout<<"Enter value of c"; cin>>c; d=(b*b)-(4*a*c); if(d==0) { r1=(-b)/(2*a); cout<<"\nThe root of eqtn is:"<
0) { r1=((-b)+sqrt(d))/(2*a); r2=((-b)-sqrt(d))/(2*a); cout<<"\nThe first root of eqtn is:"<
Program5:
#include
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : To find fibonacii series and print primes in it Meant For: Plus One students,Kerala */ void main() { // Fibonacii number generation clrscr(); int prime(unsigned long int); unsigned long int a=0,b=1,c,n,x; cout<<"\t"<<"Enter limit"; cin>>n; cout<<"/////////////////////// Prime Fibonacii generation /////////////////\n"; cout<<"\t\t"<
<<
Previous Page
Next Page>>
Web Hosting
·
Blog
·
Guestbooks
·
Message Forums
·
Mailing Lists
Easiest Website Builder ever!
·
Build your own toolbar
·
Free Talking Character
·
Email Marketing
powered by
bravenet.com