answersLogoWhite

0

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.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

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 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 the name of days when a user enters a number?

write a program to display your name age class schoolname e-mail 2hobby based on choice


What indicates the number of pixels that a computer uses to display the letters numbers and background on a screen?

pixels


Screen resolution indicates the number of that the computer uses to display the letters numbers graphics and background you see on the screen?

pixels


Screen resolution indicates the number of that the computer uses to display the letters numbers graphics and background you see on the screen.?

pixels


Write a program in shell script to display odd number from 0 to 100?

seq 1 2 99


How many letters of recommendation are required for grad school applications?

The number of letters of recommendation required for grad school applications varies by program, but typically 2-3 letters are needed.


write a program that will display one if you enter any number without it will display zero in c?

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.


How many letters of recommendation are required for graduate school applications?

The number of letters of recommendation required for graduate school applications varies depending on the program, but typically 2-3 letters are needed.


Write a java program to display the number is prime or not?

Simply use a for loop (i) that runs from 2 to N-1. Checking if N % i 0 then its a prime number.


An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


How do you make a program that display odd number from one to twenty in c plus plus?

for (int i=1; i<20; i+=2) printf ("%d\n", i);