C++ programs with basic logic
Here some basic programs on C++....
- 1LSUM : program to print the number after adding first and last digit of the given four digit number
- ADDDI1 : program to print the number after adding 1 in each digit of the given number
- ARMSTRON : program to check the given number is armstrong or not. armstrong number is 153 it means when cube of each digit of the number is added then it give the same number i.e. 1^3+5^3+3^3=153
- BASICSAL1 : to print net amount where basic salary is @ 12.5%
- BASICSAL2 : to print net amount as per given condition when basic salary is get inputed
- BINARY : program to print binary number of the given number
- CALCULATOR: if_else DMAS calculator
- CONE : to find area and volume of cone
- EVENFACT : to find even factor of the given number
- FACT : to find factor of the given number
- FACTO : program to find factorial of the given number
- FACTO2 : program to find factorial till the given number
- FIBONACCI : program to print fabonacci series till the given number. fabonacci series is that series in which it give the sum of the next two number if it start with zero and one the the series are as follows 0,1,(0+1=)1,(1+1=)2,(2+1=)3,(2+3=)5,(3+5=)8,.........................
- FUNHARSED : to find given number is harsed with function. harsed number is 1729 when the digit of the number is get sum and then that digit is get reversed and both get multiplied then the result is observed same number i.e. 1+7+2+9=19, reverse=91 and 19*91=1729
- HARSED : harsed number without function A number is said to be harsed number if we add the digits of the given number and then get reversed that number and by multiplying these two number we get same number given. 1729 is harsed number
- HCF : to find hcf of the given number using if else
- HCF2 : to find hcf of the given number using while
- MAX : to print maximum value from the given the values
- ODDFACT : to find odd factor of the given number
- POWER : to print the result of power of the number
- PRIME : to find the given number is prime number or not
- PRIME2 : program to print the reverse of the given number
- REVERSE : program to print the reverse of the given number
- ROOT : to find roots of the given equation
- SUMDIGIT : program to print the sum of the digit of the given number
- SWAADDDI : program to print the number after swapping 2nd and 3rd digit of the given number and adding 1st and 4th digit
- SWAPDI : program to print the number after swaping 2nd and 3rd digit of the given number
- TAB : to print table from 2 to 20
- TABLE : to print table of the given number
- TELEPHONE : to find billing amount of calls as per given condition
- TEMPCONV : to covert temperature from fahrenheit to celcius or celcius to fahrenheit
- TRI : to print area of triangle