/* program to calculate sum of two no.s in c*/
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum; clrscr();
cout("enter 2 nos");
cin("%d %d ",&a,&b);
sum=a+b;
cout("sum is %d",sum);
getch();
}
please give me an algorithm and a corresponding flow chart that displays list of numbers from 1 to 20.
n=100 loop until n = 9 print n n = n -1 end loop
jgfujtf
ALGORITHM SAMPLE i = 0 REPEAT OUTPUT ("Enter a number: ") INPUT (number[i]) i ++ UNTIL (number[i] 0) THEN counter++ sum = sum + number[i] END IF END FOR DISPLAY (counter) DISPLAY (sum / counter) END SAMPLE
To write a C++ program to display the student details using class and array of object.
Design step by steps algorithm on how to write the letter A and display the result
please give me an algorithm and a corresponding flow chart that displays list of numbers from 1 to 20.
To write an algorithm for dividing two numbers, follow these steps: Start by accepting two input numbers, say num1 and num2. Check if num2 is not equal to zero to avoid division by zero errors. If valid, calculate the quotient by dividing num1 by num2 and store the result. Finally, display the quotient. If num2 is zero, display an error message indicating that division by zero is not allowed.
maybe
1.Start Algorithm 2.Enter first number 3.Enter second number 4.Enter third number 5.Enter fourth number 6.Enter fifth number 7.Add five number 8.display five number / 2 9.Display result 10.End Algorithm
You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.
Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.
n=100 loop until n = 9 print n n = n -1 end loop
das
jgfujtf
Start print "the sum of all even numbers is infinite" end
10001/999900