write a c++program by using if statement to read a number and check whether it is positive or negative
Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.
Yes, do write, or if you're too lazy to your homework, use google.
write a c program to accept a number and generate a square root cube and exponential values
The pseudo code would be as follows (you figure out the syntax) 1) Prompt the user to enter a number 2) If entered number is alpha, quit program after displaying message that the user ended the program. 3) Otherwise, find Modulo 2 of the entered number. This is a fancy way of saying "find the remainder when the number is divided by 2) 4) If Modulo 2 is zero, the number is even, otherwise odd 5) Display message showing if the entered number was Even or Odd 6) Branch back to step 1
Avogadro's number is a constant. Therefore only one number is equal to Avogadro's number.
k
no thanks
seq 1 2 99
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html
dono
Write a program to convert a 2-digit BCD number into hexadecimal
in winxp del *.* /Q /S
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
The 'users' command should do that; you don't need to write a shell script to get that information in that format.
echo "Enter the Number" read n r=`expr $n % 2` if [ $r -eq 0 ] then echo "$n is Even number" else echo "$n is Odd number" fi
Write a program which takes any number of days from the user. the program should display the number of years, number of months formed by these days as well as the remaining days.