import java.util.Scanner; public class Sum
{
public static void main(String args[])
{
int sum=0;
Scanner s=new Scanner(System.in);
for(int i=0;i<10;i++)
{
System.out.printf("enter a number:");
sum+=s.nextInt();
}//end of for
}//end of main }//end of class
How to write a program for mouse in microprocessor?
question clarity
Write a program which displays digital watch on the screen, after taking the hours and minutes from the user.
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.
To write pseudocode that accepts five numbers and displays their sum and average, you can follow these steps: Initialize a variable sum to 0. Loop five times to accept input for each number, adding each to sum. After the loop, calculate the average by dividing sum by 5. Display both the sum and the average. Here’s a simple representation: BEGIN sum = 0 FOR i FROM 1 TO 5 DO INPUT number sum = sum + number END FOR average = sum / 5 OUTPUT "Sum: ", sum OUTPUT "Average: ", average END
das
write a lex program to delete space from the program
input number print number + 1
write an assembly language program to find sum of N numbers
hey i m going to give a program that accepts edges a input and then it draws the graph using a computer graphics display...
input number for loop = 1 to 3 inclusive print number end for
printf ("x")