Skip to main content

Practice Coding

Practice C++ questions and improve your skills. Enjoy It :)



Q1.) Write a C++ program to find the area of  a triangle, a rectangle, a square and a circle using inline functions.

Q2.) Write a C++ program to input name of a fruit and its nutritiinal values and display it.

Q3.) Write a C++ program to count the number of times a loop ran to sum the digits of a number.

Q4.) Write a C++ program to input item number, item name, rate and quantity by a customer. The output should display all the details provided with the calculated bill amount. (Input atleast 5 items from the customer.)

Q5.) Write a C++ program to enter a rational number from user, simplify it and display it.
ex.:-  Enter a rational number
          =====================
      Enter numerator : 8
      Enter denominator : 12
      Simplified rational number is : 2/3

Q6.) Write a C++ program to input name, age and salary of 5 employees and display the details of employees whose salary is more than 15,000.


Regards,
  • ITK

Comments

Popular posts from this blog

ASCII TABLE || HEXADECIMAL TABLE

ASCII & Hexadecimal Table (CLICK THE IMAGE TO VIEW IT PROPERLY) REGARDS, ITK

Calculator Using C Programming

  C  is not only capable in maximizing the logical concept towards machine/software programming but it also makes users comfortable through its in-built functions. Making of simple calculator in C must at least be done by the novices themselves to improve and test their level of understandings in logics being applied. Here is the code that has been created for the joy of creativity through C-coding. CODE #include <stdio.h> #include <conio.h> int main() {     int a,b,result;     char ch[2]; clrscr(); gotoxy(30,1);printf("CALCULATOR"); gotoxy(10,8);printf("FIRST NUMBER : "); gotoxy(4,9);printf("OPERATION(+,-,*,/) : "); //to choose operation from gotoxy(9,10);printf("SECOND NUMBER : "); gotoxy(16,12);printf("RESULT : "); gotoxy(30,18);printf("Powered By : ITK"); gotoxy(25,8);scanf("%d",&a); // input first number gotoxy(25,9);scanf("%s",ch); //input operation as a...

KEYBOARD CHARACTERS || KEYBOARD CHARACTER NAMES || KEYBOARD SYMBOLS AND THEIR USES || KEYBOARD CHARACTERS NAMES

The symbols used in keyboards are generally not known to all of us about. Many of us don't know either their use or their names what they are called as too. Here is the list of the symbols that are in the computer keyboards with their names. Symbols in Keyboards and their names Sl.   No.                    Symbol                                  Name 1                      & ampersand or and 2                        ‘ apostrophe or single quote 3               ...