Q1/ write a program to enter a number from(1-100) and find sum odd number only
Q: Q3: Write a program to print multipliers of 5 (from 5 to 50)
A: Imports System Module Module1 Sub Main() Dim number As Integer number = 1…
Q: Q1/ Write a program to print multipliers of 5 (from 5 to 50). (Using Do until statement)
A:
Q: Q2/ If x from (1-10) write a program to print the summation of every two consecutive even numbers…
A: It is defined as the numbers that follow each other continuously in the order from smallest to…
Q: 1- Write a program to find the average of 50 numbers and print the result.
A: Note: We are only allowed to solve one question in one post. I am solving the first one here. please…
Q: 15.Write program to prints "OK" if each digit in the number (Num) divisible by N, otherwise prints…
A: use % operator to fetch all digit of num. Check it is divisible by N or not for each digit.
Q: 1. Write a program to find the summation of the first ten numbers using do-while loop. * Your answer
A: Since no programming language is mentioned, I am using c++ Algorithm: Start Read 10 numbers in an…
Q: v. Write a program that inputs the age of different persons and counts the number of persons in the…
A: Code : #include<stdio.h> #include<conio.h> void main() { int i,n,age[100],count=0;…
Q: 10. Write a program that computes the sum: 7 k! R = -2 + k
A: code :- import mathvalue = 0.0 def factorialofvalue(n): return 1 if (n==1 or n==0) else n *…
Q: write a program to enter a number from (1-100) and find sum odd number only.
A: Matlab is a matrix programming language. The Matlab script language is used to write mathematical…
Q: Q4. Write a program to read a 10 number and calculate if it is prime or not?
A: As there is no programming language mentioned so i attempted this program in c++ In program user…
Q: [2] Write a program to find the sum of the series. Note that the factorial in every term has to be…
A: Required:
Q: Q2: Write a program to input an integer number and find if it is a primary number or not
A: primary numbers are the prime numbers only that are divided only by 1 and itself. OR they have…
Q: b Write a program asking the user to enter five numbers. Check whether number entered has been…
A: Sample Response: //Programming language: C++//Tested on: CodeBlock IDE#include<iostream>using…
Q: Q1/ Write a program to enter a value of x and compute the value of y (xif x > 0 (-x if x < 0 Where y…
A: Define variable x and y for user input x ← Take user input if x>=0 y ← x else y ← -x…
Q: 9- Write program to read 5 numbers and print all +ve numbers & print 0 if-ve numbers Ex: 95-42-2…
A: // As per our guidelines we are supposed to answer only one question. Kindly repost other questions…
Q: B: write a program to enter two numbers and print the largest number.
A: Introduction the question is about programing language of visual basic and here is the solution in…
Q: Q2- Write a program to compute the Summation (S) of values from 2 to 100 where: S = 2+4+6+. .100.
A: "Since you have not mention any programming language, so we will write our program in C++ language."…
Q: Q7: Write a program to read 3 numbers, and write the largest and smallest numbers.
A: Program description: n is user input which stores the number of integers to be read. a is an integer…
Q: 13. Write a program that reads in two integers and determines and prints if the first is a factorial…
A: Required: A program to read two integers and check if the first is a factorial of the second or not.…
Q: The below program will run without any errors X-int(input("Enter the X Number"))
A: According to the question we need to check whether the program is written will run without any…
Q: Q2/ Write a program to insert and print an integer, stop the program when you enter a value of 6.
A: The source code of the program is given below…
Q: Q4 / write a program to enter two numbers and print the largest number.
A: C program to enter two numbers and print the largest number
Q: Write a Program to find all Roots of a Quadratic Equation
A: a,b, c are coefficients where x can be calculayed by: x = [-b +- (b^2 - 4ac)^1/2] /2a D = b^2-4ac is…
Q: Q2-A-Write a program to find y value from the equation y=X2 +5 for X value From 0-10.
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: Complete the following program so that it prints the odd numbers from 3 through 501 inclusive. for i…
A: Here is the complete code with some modifications for space and a statement to find the odd number.…
Q: 3. Make a program to display all EVEN numbers from 1 - 100.
A: The question has been answered in step2
Q: Q1: Write A Program To Print The Multipliers Of 6 From 12 To 60, Using Do While.
A: 1.Start 2.Declare variables of data type integer i,j and initialize i to 12 ,j to 60; 3.Use Do while…
Q: 1.write a program to find the average of even and the average of odd numbers from 20 entered…
A: Hi, Since there are multiple questions in this post, as per our policy, I'll answer the first…
Q: Q1- Write a program to enter any three numbers, then fınd their summation and the average.
A: "Since you have not mention any programming language, so we will write our program in C++ language."…
Q: Q8: Write a program to find the summation from 1 to x, for 20 values.
A: Sample Response: //C++ to computes the sum of 1 to x, 20 values#include<iostream>using…
Q: program to read any time ( hour , minuet xt time after one second.
A:
Q: Q1/Write program to find the value e^xof from the following series :- 1+ 2 + 2! et = 1+ 4! 6! + +12…
A: Since no programming language is mentioned, I am using Matlab. Code: x=input('Enter x value:…
Q: Write C ++ program, to read A (n, n) of numbers, then put 5 instead each odd positive number.
A: Required: Write C ++ program, to read A (n, n) of numbers, then put 5 instead each odd positive…
Q: 2. Write a program that will ask for a 5-digit number and display the input number with asterisk in…
A: using System;//definition of main classclass main { //definition of the main function static…
Q: 1- Write a program to compute the value of y: y = 1+++ 3 25 .+ Where 3 49
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: Question4: Write a program to take input an integer n followed by n integers. Program should check…
A: Here, Code instruction is given.
Q: Q6) Write a program to count the number of ones in AX, store the number of ones in BL.
A: Please give positive ratings for my efforts. Thanks. ALGORITHM Step I : Initialize the data…
Q: Q5): write a program to read an integer from 1 to 7 and print th name of the day in a week.
A: Using array of weekdays: Or alternative code using switch statement:
Q: 9.Write program to print all the numbers divisible by 4 and 5 up to a number of N(entered by user…
A: I have given an answer in step 2.
Q: H.w.1: write a program to print the numbers from 1 to 50 by using for. : write a program to read 5…
A: #include <iostream> using namespace std; int main(){ for(int n=1;n<=50;n++){ //i from 1…
Q: Q6: Write a program to find value of (U, 0 and p).
A: Program code provide below makes use of two header files. One for the standard input and output and…
Q: Q3) Write a program to find and print the maximum number between three numbers you enter from the…
A: To find the maximum of three numbers, each is compared with the other and the maximum is found out.
Q: Q1) Write a program to enter a number from the keyboard then print "YES" if the number is divisible…
A: Answer : #include <iostream> using namespace std;
Q: Complete the following program so that it prints the odd numbers from 3 through 501 inclusive. for i…
A: Ans: Code: for i in range(3, 501+1, 2): print(i)
Q: 1. Write a program to read 2 numbers. Display the greatest of all.
A: Note: Answering the first question as per the guidelines. Input : Read two integers Output :…
Q: 56. Write a program to print the odd number between 1-100 and find their average.
A: Given:
Q: Question1: Write a program to take input an integer n followed by n integers. Program should check…
A: START DECLARE n INPUT n DECLARE a[n] and count = 0 FOR i = 0 to n-1 INPUT a[i] element IF i is not…
Q: The following code will print Int X=1; Int y=x + ~x; Printf(“%d”,y);
A: We need to print the output for the logic: Int X=1; Int y=x + ~x; Printf(“%d”,y);
Q: 1- Write a program to compute the value of y: 25 + 49 3 y = 1+++ Where 5
A: Since the language is not mentioned, I have done the first question using Python 3.
Step by step
Solved in 2 steps
- 9- Write a program which read a number of 3 digits and check if (units, tens, hundreds) digit is greater than 5, convert this digit to 5. FOR eg. 147 After check 145 983 After check 5535- Write a program which read a number consists of 4 digits and find the maximum digit of the number. FOR eg. 1472 the maximum digit is 7 the maximum digit is 9 983515.Write program to prints "OK" if each digit in the number (Num) divisible by N, otherwise prints "Not ok".
- Q2/ If x from (1-10) write a program to print the summation of every two consecutive even numbers (2+4) (4+6) (6+8) ... اكتب برنامج بلغة الفورتران لطباعة مجموع كل رقمي ين زوجي ين متعاقي ي ين ل لأعداد المحصورة بين 1 إلى 10Q2/ If x from (1-10) write a program to print the summation of every two consecutive even numbers (2+4) (4+6) (6+8) .. برنامج بلغة الفورتران لطباعة مجموع كل رقمين زوجي ين متعاقبي ين ل لأعداد المحصورة بين 1 إلى 10 اكتبQ3/ Write a program to enter a real number then find its square after putting suitable design.
- 2: commas.cpp) Write a program that accepts a 7-9 digit integer and echoes the number with commas between every three digits from the right. Test it with the numbers 1234567, 987654321, 20300045, & 10000000.Q2: Write a program that inputs a five-digit integer, separates the integer into its individual digits and prints the digits separated from one another by three spaces each.Q2/ If x from (1-10) write a program to print the summation of every two consecutive even numbers (2+4) (4+6) (6+8) .. اكتب برنامج بلغة الفورتران لطباعة مجموع كل رقمي ين زوجي ين متعاقبي ين ل لأعداد المحصورة بين 1 إلى 10
- Q2: b- Write a program that uses a function to find and return the maximum number between N numbers.Use While loop to solve the problems Note: Python language for solution 4. Write a program that uses a while loop, the program should do the following: The program should repeatedly read numbers until the user enters "done". Once "done" is entered, print out the total, count, and average of the numbers. 5. Write a program to find the sum of even numbers until n, where n is an int entered by the user, example: n = 11, sum = 2+4+6+8+10, sum = 30.Ex4 : Write a program in basic language to find the maximum number from the following number (5 10 15 20 25).