import java.util.*;
public class myClass {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
System.out.print("Input a String: ");
String str = scan.nextLine();
System.out.print("Input an integer: ");
int num = scan.nextInt();
for(int i=str.length()-1; i>=0; i--) {
for(int j=0; j<num; j++) {
System.out.print(str.charAt(i));
}
}
}
}
Answer:
pseudo code:
x=1
q=0
while x*x<h:
{
x += 1}
q=x-1
complete code in C language
#include <stdio.h>
int main() {
int h=19;
int q=0;
int x=1;
while ((x*x)<h){
x += 1;
}
q=(x-1);
printf("The sum of total perfect squares less than %d is: %d", h,q);
return 0;
}
Explanation:
first '%d' in print statement refers to h and second '%d' in print statement refers to q
I think B and the second one C
The answer to this question is <span>file, command, or directory names
File is the part of the program that could be used to store various information. The command is part of the program that give abilities for user to run a certain program within the system operation. Directory names will create some sort and arrangement on collection of files</span>