untitled
My sites
Plus One
Home
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 1
Largest of three numbers
Check the sign of a number
Sum of digits of a number
Number of digits in number
Multiplication table of number
Next Page>>
Program1:
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : The third program for a beginner after studying IF statement Program : To find largest of three numbers Meant For: Plus One students,Kerala */ main() { clrscr(); int a,b,c; cout<<"Enter three numbers"; cin>>a; cin>>b; cin>>c; if(a>b) if(a>c) cout <
c) cout<
Program 2:
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : To check the sign of a number Meant For: Plus One students,Kerala */ void main() { clrscr(); int n; cout<<"Enter number"; cin>>n; if(n==0) cout<<"Number is Zero"; else if(n>0) cout<<"Number is positive"; else cout<<"Number is negative"; cout<<"\n Press any key to continue"; getch(); }
Program 3:
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : To find the sum of digits of number Meant For: Plus One students,Kerala Precision: Upto 10 digits */ void main() { long signed int num,s,re,fi; clrscr(); s=0; cout<<"\aEnter the number you want:"; cin>>num; fi=num; num=(num<0)?(num*-1):num; while(num>0) { re=num%10; num=num/10; s=s+re; } clrscr(); cout<<"\aThe given number is:"<
Program 4:
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : To find the number of digits in a number Meant For: Plus One students,Kerala Precision: Upto 10 digits */ void main() { long unsigned int num,c=0,r; clrscr(); cout<<"Enter the number you want :"; cin>>num; do { num=num/10; c++; } while(num>0); cout<<"The total number of digits is:"<
Program 5:
#include
#include
/* Author : Rohith.R Email : rrohithr@gmail.com Category : Begineer Program : To find the multiplication table of number Meant For: Plus One students,Kerala */ void main() { float num,i,li; float m; clrscr(); cout<<"Enter the number you want multiplication table for:"; cin>>num; cout<<"Enter limit of multiplying numbers (1-n):"; cin>>li; clrscr(); cout<<"**************** MULTIPLICATION TABLE OF "<
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