# #inlude
{ unsigned short myNumber = 1; do
{
cout << "Enter a number between 1 and 10: ";
cin >> myNumber;
} while ((myNumber <= 1) && (myNumber >= 10)); switch (myNumber)
{
case 1:
cout << "You've entered one.\n"; break;
case 2:
cout << "You've entered two.\n"; break;
// And so on
case 10: cout << "You've entered ten.\n";
break;
} cin.get();
cin.get(); return 0;
}
seq 1 2 99
first think of the logic and then write the statements
To write a C++ program to display the student details using class and array of object.
Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9
A C++ program can be used to write C programs that will display 10 lines of biodata. Many types of C programming can be written with a C++ program.
write a program to display your name age class schoolname e-mail 2hobby based on choice
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.
seq 1 2 99
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.
first think of the logic and then write the statements
Faisal
Simply use a for loop (i) that runs from 2 to N-1. Checking if N % i 0 then its a prime number.
To write a C++ program to display the student details using class and array of object.
Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9
A C++ program can be used to write C programs that will display 10 lines of biodata. Many types of C programming can be written with a C++ program.
dono
#include<stdio> #include<conio> class program { namespace display { console.println("write your text"); } } correct me if im wrong im a new programmer.