Poor Boy.
We do not do your homework here.
Reference: cprogramming-bd.com/c_page3.aspx#for%20loop
To write a C++ program to display the student details using class and array of object.
12
The required c program is given below /*Swapping(interchange) the two entered numbers*/ #include<stdio.h> main() { /*Without using third variable*/ int a,b,t; printf("Enter a:"); scanf("%d",&a); printf("Enter b:"); scanf("%d",&b); a=a+b; b=a-b; a=a-b; printf("\n After swapping without using third variable"); printf("\na=%d\nb=%d",a,b); }
Sure! Here's a simple Python program that allows the user to input 5 numbers and then calculates and prints their total: numbers = [] for i in range(5): num = int(input("Enter a number: ")) numbers.append(num) total = sum(numbers) print("The total is:", total) This program prompts the user to enter a number 5 times, converts each input to an integer, stores them in a list, calculates the sum of the numbers using the sum() function, and finally prints the total.
It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include<stdio.h> main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........
To write a C++ program to display the student details using class and array of object.
Count all the given numbers then count all the numbers of a given value. Divide one by the other and multiply by 100. For instance, if there are 50 numbers in total and 5 of them have the value 42, then the percentage of numbers with the value 42 is 5 / 50 * 100 = 10%.
program to find maximum of two numbers using pointers
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.
range iS given by -{2^(k-1) - 1 } to +{2^(k-1)-1} So putting k=7 range i from -63 to +63
11
The GCF of the given numbers is 8
write an assembly language program to find sum of N numbers
add them all together and then divide the answer by the number of numbers.
The replacement set is given in the problem and is the domain for the problem (these numbers are used to replace x). The solution set are numbers calculated from the problem and is the range (these are y values that are answers from using the equation).
kjhk
by simplifying the given numbers