Pseudocode algorithm to print the numbers from 1 to 10, Data Structure & Algorithms

1. Write a pseudocode algorithm to print the numbers from 1 to 10, and then from 10 to 1, using exactly one loop.

2. The function contains() takes a food as an argument and tells you whether the pizza contains that food. Tomas is allergic to peanuts, tuna, and onions, but strangely, eating peanuts and onions together is fine for him. Write a condition that determines whether the pizza is safe for him to eat.

 

Posted Date: 3/20/2013 2:07:50 AM | Location : United States







Related Discussions:- Pseudocode algorithm to print the numbers from 1 to 10, Assignment Help, Ask Question on Pseudocode algorithm to print the numbers from 1 to 10, Get Answer, Expert's Help, Pseudocode algorithm to print the numbers from 1 to 10 Discussions

Write discussion on Pseudocode algorithm to print the numbers from 1 to 10
Your posts are moderated
Related Questions
how to write an algorithm for unions & intersection of two linklists?

What data structure would you mostly likely see in a nonrecursive execution of a recursive algorithm? Stack

An undirected graph G with n vertices and e edges is shown by adjacency list.  What is the time required to generate all the connected components? O (e+n)

Q. Explain the Hash Tables, Hash function and Hashing Techniques properly?             A n s . H as h Table is explained as follows : A hash table is a data struc

Implementation of Stack :- Stacks can be executed in the 2 ways: a)  Arrays b)  Linked List

what is hashing? what are diffrent method of hashing?

The ?-Notation (Lower Bound) This notation provides a lower bound for a function to within a constant factor. We write f(n) = ?(g(n)), if there are positive constants n 0 and

Q1. Define a sparse matrix. Explain different types of sparse matrices? Evaluate the method to calculate address of any element a jk of a matrix stored in memory. Q2. A linear

compare and contrast the bubble sort,quick sort,merge sort and radix sort

GIVE TRACE OF BINARY SEARCH ALGORITHM BY USING A SUITABLE EXAMPLE.