Answer:
ay di ko alam yan hahahaha
Explanation:
#include <iostream.h>
#inlcude<conion.h>
void main()
{
int count, x;
clrscr();
cout<<"Enter the count:";
cin>> count;
cout<<"Ready!\n";
for(x=count;x>0;x--)
{
cout<<x<<"\n";
}
cout<<"Start";
getche();
}
This is a simple program where the output is expected to be in reverse order. So we run a for loop starting from the count and decrements the counter by 1 every time when the loop runs and print the value. So to print the output in "new line" we include "\n".
<span>A. Certificate of License</span>
Answer:
import java.util.Scanner;
public class TestClock {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter two integer numbers");
int num1 = in.nextInt();
int num2 = in.nextInt();
int newSum=num1+10;
System.out.println("The first number is "+num1);
do{
System.out.println(newSum);
newSum +=10;
}while (newSum <=num2);
}
}
Explanation:
Using Java Programming language
- Prompt user for the two inputs and save them as num1 and num2(Using the scanner class)
- Create a new Variable newSum = num1+10
- Create a do...while loop to continually print the value of newSum, and increment it by 10 while it is less or equal to num2