1. If m and n are int type variables, what will be the result of the expression m%n when m=-14 and n=-3?A) 4B) 2C) -2D) -42. Consider the following codeif(number>=0) if(number>0) system.out.println("Number is positive");else system.out.println("Number is negative");What will be the output if number is equal to 0?A) Number is negativeB) Number is positiveC) Both A and BD) None of the...
الثلاثاء، 22 يوليو 2014
الأربعاء، 16 يوليو 2014
Write a Program in C to Find if a Number is Present in a List or not
Posted on 8:46:00 صby Abdelrahman Ahmed with No comments
Here is a C program to find if a number is present in a list of N numbers or not. In this program for loop is used to search a number from the list of numbers and array of numbers is used to insert numbers in a list. If the searched number is matched with any number in the list it throws to print it...
الجمعة، 11 يوليو 2014
C Program to Find the Sum and Average of Numbers Using Do-While Loop
Posted on 12:30:00 صby Abdelrahman Ahmed with No comments
In this program sum and average of of the given numbers are calculated using do-while loop.Do-while loop is a looping condition where statements are executed continuously until the condition validates and test the condition after having executed the statements within the loop.This means that do-while...
الخميس، 10 يوليو 2014
Write a Program in C to Sort a List of Numbers in Ascending Order
Posted on 4:38:00 صby Abdelrahman Ahmed with No comments

In the program below nested for loop is used to sort a list of real numbers in ascending order. This program below asks to enter how many numbers want to sort and allow to enter the numbers to sort them in ascending order.The nested for loop in the program swaps the numbers if first number...
الأربعاء، 9 يوليو 2014
Write a Program in C to Calculate the Factorial Value of an Integer.
Posted on 12:00:00 صby Abdelrahman Ahmed with No comments
Here is a program in C to calculate the factorial value of an integer.The factorial of a number is the product of all the integers between 1 and that number. For example factorial of 5 is 5*4*3*2*1. This can also be expressed as 5!=5*4!, where '!' stands for factorial.Hence factorial of a number...
الثلاثاء، 8 يوليو 2014
Write a Program in C to Copy a String to Another.
Posted on 2:36:00 صby Abdelrahman Ahmed with No comments

Here is a program in C to copy one string to another string using user defined function. Here two character arrays are defined then prompted to enter the strings and copied to the first string using while() function.Program in C to Copy a String to AnotherSteps:At first declare two strings str1...
الاثنين، 7 يوليو 2014
C Program to Read Set of Real Numbers from Keyboard & Find the Maximum
Posted on 10:40:00 صby Abdelrahman Ahmed with No comments
To write a C program to read set of real numbers from keyboard and find the maximum among them, you can use a function which takes an array of real numbers and its size as arguments and return the maximum.Using this function you can write a program to read a set of real numbers from the keyboard and...
الأحد، 6 يوليو 2014
Write a Program in C to Determine Whether a Number is Prime or Not.
Posted on 9:46:00 مby Abdelrahman Ahmed with No comments
"A prime number is one, which is divisible only by 1 or itself."To determine whether a number is prime or not, we have to divide the number successively by all numbers from 2 to one less than itself.If remainder of any of these divisions is zero, the number is not a prime.If no division yields a zero...
الاشتراك في:
الرسائل (Atom)
يتم التشغيل بواسطة Blogger.
التسميات
- Artificial Intelligence(AI)
- Backlinking
- Basic IT
- Best List
- Blogging Tips
- C
- C#
- C++
- Computer Architecture
- Computer Fundamental
- Computer Security
- Computer/IT Officer Exam
- CSS
- Data Mining and Warehousing
- Data Recovery Tools
- Data Structure
- Database Management System
- E-commerce
- E-government
- Internet & Web Designing
- IT Law
- IT Tips and Tricks
- IT Tutorials
- Java
- JavaScript
- Keyword Research Tools
- MIS
- Multiple Choice Question (MCQ)
- Networking
- Online Earning
- Online IT Jobs
- Operating System
- Oracle Forms and Reports
- Programming Guide
- Programming Language
- SEO
- Social Networking Sites
- Software Download
- Software Engineering
- System Analysis and Design
- Top List
- VB.Net