Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
write a program to input a number and print table of the number using while loop
Home
Education
write a program to input a number and print table...
asked
Dec 31, 2021
in
Education
by
JackTerrance
write a program to input a number and print table of the number using while loop Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 31, 2021
by
JackTerrance
Best answer
Answer: Program #1 : Write a c program to print multiplication table using while loop int main() { int n, i; printf(“Enter a Number “); scanf(“%d”,&n); i=1; while(i<=10){ printf(“%d * %d = %d \n”, n, i, n*i);
Related questions
0
votes
Q: Using nested loop write a program to print the following pattern on the screen.12345234513451245123
Using nested loop write a program to print the following pattern on the screen. 12345 23451 34512 45123 51234 Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input number and print wether it is even or odd.
write a program to input number and print wether it is even or odd. Select the correct answer from above options...
asked
Dec 21, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program in Java to input a number and print if it is a special number or not.
write a program in Java to input a number and print if it is a special number or not. do this program using ... nested and while loop . Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a menu-driven program to print the following patterns, where number of rowsfor the pattern should be the user input:a. Press 1 to print the following pattern:55 85 8 135 8 13 205 8 13 20 29b. Press 2 to print the following pattern:22 92 9 282 9 28 652 9 28 65 126c. Print the following series:
Write a menu-driven program to print the following patterns, where number of rows for the pattern should be the user ... 2 4 8 32 Select the correct answer from above options...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Rewrite the following loop using for loop:int i=0;while (i<10){System.out.print(“*”);System.out.print(i++);
Rewrite the following loop using for loop: int i=0; while (i...
asked
Dec 22, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program in JAVA to input a sentence reverse every word and print .
Write a program in JAVA to input a sentence reverse every word and print . Please answer someone. Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: How to write a program in JAVA to print the sum of ASCII values of a particular word input ?
How to write a program in JAVA to print the sum of ASCII values of a particular word input ? Select the correct answer from above options...
asked
Dec 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: convert the following into For loop;while(true)System.out.print(‘*’);(in java )PLEASE ANSWER FAST…
convert the following into For loop; while(true) System.out.print(‘*’); (in java ) PLEASE ANSWER FAST… WILL MARK BRAINLIEST** Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: input a sentence and print total number of times consecutive alphabet comes using for and charAt functionThe sentence you have to input is:
input a sentence and print total number of times consecutive alphabet comes using for and charAt function The sentence ... is studying Select the correct answer from above options...
asked
Dec 24, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Using Scanner, input name, class, div, roll number and marks in three subjects of a student. Calculate total and average if grand total is 300. Print student name , total and average.
Using Scanner, input name, class, div, roll number and marks in three subjects of a student. Calculate total ... total and average. Select the correct answer from above options...
asked
Nov 26, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a number. check and display whether it is divisible by 100
write a program to input a number. check and display whether it is divisible by 100 Select the correct answer from above options...
asked
Dec 17, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a number and display the odd digits
write a program to input a number and display the odd digits Select the correct answer from above options...
asked
Dec 16, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write a program to prompt the user for days and rate per day to compute total pay. Use 50 days and a rate of 3.5 per day to test the program. Total pay is equal to (days* Rate per day). You should use input to read a string and float() to convert the string to a number.
Write a program to prompt the user for days and rate per day to compute total pay. Use 50 days and a rate ... the string to a number. Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to implement a simple calculator for two input number . offers choice through a menu in python
write a program to implement a simple calculator for two input number . offers choice through a menu in python Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program that inputs a strig and then print the string, equal to number of times its length
write a program that inputs a strig and then print the string, equal to number of times its length Select the correct answer from above options...
asked
Nov 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...