answersLogoWhite

0

The simplest way is to add a loop around the ask-for-the-number, show-the-table routine. In pseudocode:

while (1) { ask-for-the-number; show-the-table; }

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


write a program that will display one if you enter any number without it will display zero in c?

You can use the following C program to display "1" if a user enters any non-zero number, and "0" if the entered number is zero: #include <stdio.h> int main() { int num; printf("Enter a number: "); scanf("%d", &num); if (num != 0) { printf("1\n"); } else { printf("0\n"); } return 0; } This program reads an integer from the user and checks if it is non-zero or zero, then prints the corresponding output.


C program to display a number entered by user as it is without skipping the zeros preceding the number?

// Define and initialize input buffer char inputBuffer[256]; memset(inputBuffer, '\0', 256); // Get input scanf("%s", inputBuffer); // Display exactly what the user typed in printf("%s\n", inputBuffer);


How do you write a c program to shift the entered number by 3 bits left and also 5 bits right and display the result?

Input and output should be trivial; the core of it is: m = (n5Note: it is not the same as m = n>>2


What are the application of seven segment display?

A: Seven segment display can give digital number visually from a source like a computer that has binary outputs the number 64 in digital would be 100000 and also can display alphanumeric which is what humans can readily see So basically transfer information from a machine language to human language

Related Questions

An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


Write a shell program to find given no is even or odd?

The pseudo code would be as follows (you figure out the syntax) 1) Prompt the user to enter a number 2) If entered number is alpha, quit program after displaying message that the user ended the program. 3) Otherwise, find Modulo 2 of the entered number. This is a fancy way of saying "find the remainder when the number is divided by 2) 4) If Modulo 2 is zero, the number is even, otherwise odd 5) Display message showing if the entered number was Even or Odd 6) Branch back to step 1


write a program that will display one if you enter any number without it will display zero in c?

You can use the following C program to display "1" if a user enters any non-zero number, and "0" if the entered number is zero: #include <stdio.h> int main() { int num; printf("Enter a number: "); scanf("%d", &num); if (num != 0) { printf("1\n"); } else { printf("0\n"); } return 0; } This program reads an integer from the user and checks if it is non-zero or zero, then prints the corresponding output.


C program to display a number entered by user as it is without skipping the zeros preceding the number?

// Define and initialize input buffer char inputBuffer[256]; memset(inputBuffer, '\0', 256); // Get input scanf("%s", inputBuffer); // Display exactly what the user typed in printf("%s\n", inputBuffer);


Write a program which takes any number of days from the user the program should display the number of years number of months formed by these days as well as the remaining days?

Write a program which takes any number of days from the user. the program should display the number of years, number of months formed by these days as well as the remaining days.


Write a program to display the name of days when a user enters a number?

write a program to display your name age class schoolname e-mail 2hobby based on choice


How do you write a c program to shift the entered number by 3 bits left and also 5 bits right and display the result?

Input and output should be trivial; the core of it is: m = (n5Note: it is not the same as m = n>>2


What if your instructions tell you to type in a percentage in cell E15 How should you type that number?

Percentages are entered as decimals. For example 12% is entered as .12. You can format a cell to display the contents as percent, if you like.


What are the application of seven segment display?

A: Seven segment display can give digital number visually from a source like a computer that has binary outputs the number 64 in digital would be 100000 and also can display alphanumeric which is what humans can readily see So basically transfer information from a machine language to human language


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.


What is c program to calculate product of all even numbers from entered number down to 1?

c is programming laungage


Write a program in shell script to display odd number from 0 to 100?

seq 1 2 99