Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

404 Not Found


Maybe your looking for one of these pages?

  • Implement a function that accepts 3 integer values a, b, c. The function should return true if a triangle can be built with the sides of given length and false in any other case.
  • #include<stdio.h> int main() { int n; scanf("%d",&n); int ar[n]; int count=0; for(int i=0;i<n;i++) { scanf("%d",&ar[i]); } for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(ar[i]==ar[j]) { count=count+1; } else { count=0; } } } printf("%d\n",(count)/2); }
  • int sum = 0; for(int i = 10; i > 0; i -= 3) { sum += i; } System.out.println(sum);
  • What will the following code display? int numbers[] = {99, 87, 66, 55, 101); cout << numbers[3] << end1;
  • Java program pattern program to triangle using 100 numbers
  • int a=10,b=20,c=30; int x,y; x=(a,b,c); y =a,b,c; Find the values of x and y ? Output x=30 Y =10
  • int a[ ]={4,8,3,2}; a[0] = 23; a[3]= a[1]; a[2]=12; for(int i=0; i<a.length; i++) System.out.println(a[i]);
  • Int a ,b,z; a=1;b=4;while(a<b) { a=2*a; b=b 1; } z=b;
  • Int main ( ) { int i,n; cin>>n; i=n; while(i>=1) { i=i+5; i=i-6; } }
  • Calculate the arithmetic mean of integer numbers and output it. You will receive the integers on separate lines. The numeric sequence ends with a period ., so stop reading the input on it.
  • Which of the following are valid while or do/while statements in ANSI C and Betty-compliant? (Considering a and b two variables of type int)
  • Int a ,b,z; a=1;b=4;while(a<b) { a=2*a; b=b 1; } z=b;
  • Write code which checks validity of a 3-digit positive integer entered by the user. The number is considered valid (true) if the sum of the first two digits is greater than or equal to the last. Otherwise it is invalid (false).
  • The Java method below computes and returns the geometric mean of a given series of numbers. Give the missing expressions/statements. Note: The geometric mean of a set of numbers x1, x2,...xn defined as G space equals n-th root of x 1. x 2. x 3... x n end
  • The Triangle Classification Algorithm accepts three integer lengths and it returns a 1, 2, 3, or 4. The three lengths represent possible lengths to the sides of a triangle. Returning a 1 means that the lengths would form a scalene triangle. Returning a 2
  • When 0 is subtracted from 0, what are the values of all five flags (C, V, Z, S, and TrueSign)?
  • You need to take one integer value as input and tell if the value is positive or negative or zero. See the sample input and output for more clarification. in C programming
  • int solution(int n) { // your code here int result = 0; if (n < 0){ return 0; } else { for (int i = 0; i < n; i++){ if (i % 3 == 0 || i % 5 == 0){ result = result + i; } } } return result; } give me the most opt
  • demonstrates that strings, integers, characters, boolean values, and functions are all of the types
  • Problem Statement For an integer n, let S(n) be the sum of digits in the decimal notation of n. For example, we have S(123) = 1 + 2 + 3 = 6 Given two 3-digit integers A and B, find the greater of S(A) and S(B). Constraints • All values in input are inte
  • find error #include <iostream> using namespace std; int main() { int arr[] = {5, 1, 4, 2, 3}; int n = sizeof(arr) / sizeof(arr[0]); for (int i = 1; i <= n - 1; i++) { for (int j = 0; j < n - 1; i++) { if (arr[j
  • write ajva program to vheck if anumber is less than 20 and greater than 5. It generates the exception out of range otherwise. If the number is within the range , then it displays the square of that number.
  • Int a ,b,z; a=1;b=4;while(a<b) { a=2*a; b=b 1; } z=b;
  • X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.