473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

getting numbers

hai friends
see i have to get numbers in this manner
3 4 5 6 7 8 9
ok.And also my numbers should not be larger than 9.so for each number
the condition has to be checked if it's great than 9 , then the pgm
should return 0.
for above pgm
when 3 is entered the condition should be checked,if it's
correct then i should be allowed to enter the next number.

Nov 14 '07 #1
4 1412
beginers of c <ss*******@gmail.comwrote:
hai friends
Hello, homework cheater. Be advised that I do not consider homework
cheaters to be my friends.
see i have to get numbers in this manner
3 4 5 6 7 8 9
ok.And also my numbers should not be larger than 9.so for each number
the condition has to be checked if it's great than 9 , then the pgm
should return 0.
for above pgm
when 3 is entered the condition should be checked,if it's
correct then i should be allowed to enter the next number.
How about... you do your own homework? If you have made a decent
attempt, show us what you have and tell us what your problem with it is.
If you haven't had a good hard stab at it, do so now. You will never
learn if you get others to do your homework for you.

Richard
Nov 14 '07 #2
beginers of c wrote:
hai friends
see i have to get numbers in this manner
3 4 5 6 7 8 9
ok.And also my numbers should not be larger than 9.so for each number
the condition has to be checked if it's great than 9 , then the pgm
should return 0.
for above pgm
when 3 is entered the condition should be checked,if it's
correct then i should be allowed to enter the next number.
There's a Coors Light commercial with former Coach Bill Parcells in a
post-game press conference. An excerpt:

Q: "Coach! I have a question! I love cold Coors Light!"

Bill: "That's really not a question."

--
SM
rot13 for email
Nov 14 '07 #3
In article <47***********@mindspring.com>,
pete <pf*****@mindspring.comwrote:
>santosh wrote:
>>
In article <11**********************@z24g2000prh.googlegroups .com>,
beginers of c <ss*******@gmail.comwrote on Wednesday 14 Nov 2007 9:48
pm:
And also my numbers should not be larger than 9.so for each number
the condition has to be checked if it's great than 9 , then the pgm
should return 0.
>This statement:
"when 3 is entered the condition should be checked,if it's
correct then i should be allowed to enter the next number."
Why is that statement written as though
we don't know whether or not entering 3 satisfies that condition?
What condition are we talking about?
The condition of not being greater than 9?

see i have to get numbers in this manner
3 4 5 6 7 8 9
ok.And also my numbers should not be larger than 9.so for each number
the condition has to be checked if it's great than 9 , then the pgm
should return 0.
for above pgm
when 3 is entered the condition should be checked,if it's
correct then i should be allowed to enter the next number.
If the numbers are supposed to be entered on a single line, as
showin "in this manner", then to "be allowed to enter the next number"
implies that after number greater than 9 is found, that the
user should not be "allowed" to enter further numbers on the same line.
That implies examining the input as it is typed, not just when the
line is completed. Unfortunately for the original poster, examining
input as it is typed in is not something that can be done with the
facilities provided by the C I/O library, and requires system-specific
extensions.

--
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth
Nov 14 '07 #4
Walter Roberson wrote:
>
In article <47***********@mindspring.com>,
pete <pf*****@mindspring.comwrote:
This statement:
"when 3 is entered the condition should be checked,if it's
correct then i should be allowed to enter the next number."
Why is that statement written as though
we don't know whether or not entering 3 satisfies that condition?
What condition are we talking about?

The condition of not being greater than 9?
It seems strange to discuss what a program should do,
*if* 3 turns out to be not greater than 9.

--
pete
Nov 15 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Thomas | last post by:
Hi! I need help getting some information out of a text string. The text string contains different id-numbers together with a minute specification. Example: Textstring =...
3
by: Larry Tate | last post by:
I have had a monstrous time getting any good debugging info out of the .net platform. Using ... ..NET Framework 1.1 Windows 2K Server VB.NET <- is this the problem? error handling in the...
41
by: pb648174 | last post by:
In a multi-user environment, I would like to get a list of Ids generated, similar to: declare @LastId int select @LastId = Max(Id) From TableMania INSERT INTO TableMania (ColumnA, ColumnB)...
3
by: Dave | last post by:
Hey all, I have a problem and I can't find anything on the net to really address it. We have a program at work that has lots of numbers on the front of the form because it is a control program...
5
by: Manjiri | last post by:
Hello Everybody... Here i have the program which prints how many number of times the element appears in the array.... The code is as follows... #include<iostream.h> class Count
3
by: Rahul | last post by:
Hi, Is there a way to get the line numbers to display in the exception when you have published your web site? Thanks Rahul
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
12
by: magmike | last post by:
Accidentally deleted a record. Anyway to get it back? If not, I know the ID number - which is an autonumber field. Because of the related data from other tables, would I be able to create a new...
2
by: srusskinyon | last post by:
I need some help getting unique records from our database! I work for a small non-profit homeless shelter. We keep track of guest information as well as what services we have offered for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.