10 cls
20 input"enter word";word$
30 print word$
40 print len(word$)
50 end
this program is for GW BASIC for other BASIC's the line numbers are optional.
The only number that matches the number of letters it has. Four letters for the number 4.
It depends on the type of calculator you have. If you have a 8-digit calculator, the largest square number you can display is 99,980,001. If you have a 10-digit calculator, the largest square number you can display is 9,999,800,001. With a TI-84, you can display 9.999999999e99 (which is actually rounded).
The only month that has the same number of letters in its name as the number is "May." "May" has three letters, and it is the fifth month of the year. None of the other months have this unique characteristic of having the same number of letters as their position in the calendar year.
Ah, a number that has 5 letters, isn't that a lovely little puzzle? Let's see, how about the number "three"? It has five letters and brings to mind images of gentle brushstrokes on a canvas. Just like painting, sometimes it's the simple things that bring the most joy.
It reduces the number of digits after the decimal point in the display, rounding the number as appropriate.
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.
write a program to display your name age class schoolname e-mail 2hobby based on choice
pixels
pixels
pixels
seq 1 2 99
The number of letters of recommendation required for grad school applications varies by program, but typically 2-3 letters are needed.
You can use the following C program to display "1" if a user enters any non-zero number, and "0" if the entered number is zero: #include <stdio.h> int main() { int num; printf("Enter a number: "); scanf("%d", &num); if (num != 0) { printf("1\n"); } else { printf("0\n"); } return 0; } This program reads an integer from the user and checks if it is non-zero or zero, then prints the corresponding output.
The number of letters of recommendation required for graduate school applications varies depending on the program, but typically 2-3 letters are needed.
Simply use a for loop (i) that runs from 2 to N-1. Checking if N % i 0 then its a prime number.
program that take three decimal number as input and find the largest among them in assembly language
for (int i=1; i<20; i+=2) printf ("%d\n", i);