whats endl?
i did a major revision of my code
i dont know if this is correct or not. plss help with the do while.
#include<iostream.h>
#include<conio.h>
int prnmsg(int a);
main()
Type: Posts; User: langamer101
whats endl?
i did a major revision of my code
i dont know if this is correct or not. plss help with the do while.
#include<iostream.h>
#include<conio.h>
int prnmsg(int a);
main()
i think i get the uhm -- thing.
here's a sample
a--
sum=a
return sum;
so i must use -- first before assigning it to sum? correct?.
ok lol, ill try asking my teacher why the heck do i a student have to use an ancient c++ compiler which is outdated and not like the rest which uses a modern c++ compiler, which i found out recently...
thanks std10039.
i shall carefully analyze your sentence and understand it to why my program does not work.
uhmm, i get that return sum returns the variable, thats all i get. all the others are just confusing to me.
i think this is an ANCIENT (turbo c++ 3.0) compiler which i heard from my teacher or some online forums whatnot. why does my school use ancient compilers ahhhhhhhh.
im using turbo c++ 3.0
im a noob at programming and my teacher taught me this way of writing a program through C++.
#include<iostream.h> works for some reason in my compiler
i dont know about...
a program with a function printmsg() that has a parameter n. the function prints the messag "hello world" n time
tried making one. not looping. what is problem
#include<iostream.h>...
here is code now with && logical operator
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
int x,y,z,l;
printf("Enter value for x: ");
my teacher has not taught me about "&&, ||, !" logical operators yet.
only these ">,<,=,==,>=,<=" relational operators. :(
ummm, hmm, thanks.
time to start reading and quiz myself on C tutorial.
it this code correct now?. I run it, put aruns x=10,y=5,z=15 and x=5,y=4,z=6 and works.
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
int x,y,z,l;
printf("Enter value...
lol that was all. x>y>z on the first if
OH I SEE. omg I look so ..............
thanks guys.
edit
more problems...............omg ill try to figure it out.
omg, what sorcery it this.
output is 5??????????????????????
ArunS
I run program then I input x=10,y=5,z=15
output = 10
hmmmm double digits and single digit numbers do not work.
it seems that i was so happy with the program working with 1 digit xyz...
Its looks exactly the same but its not in logic.
so basically i started looking where would the large number go if true or false
if x > y it would print x if false goes to next else if
if z > y it...
It seems Tibo-88 suggestion worked for me thanks and thanks for all the help guys
so here is code redone
so I tried calculating true or false and saw that "z > x" and "y > x" was wrong.
...
so i redo everything here is code
it works but still there is problem in y or z
if i input in x as 1, y as 32, z as 3
the output goes directly to z or 3. wth?
#include<stdio.h>...
for some reason if i put printf inside "else if" it dont work just goes directly to else? what the heck.
seems to me that I have no idea of putting printf outside of else @ledow so I will try @stahta01 suggestion.
so I don't put printf inside else. ok let me try
from what I understand of this this code I created using if else if statement (assignment) seems correct to me.
but for some reason it is not printing L or
#include<stdio.h>
#include<conio.h>...
thank you very much Adak. I got confused with what squareroot formula is but there wasn't any, thanks man.
to get radius is = squareroot area / pie
the heck do i get squareroot?
what is the secret formula for squareroot?
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
CommonTater
thanks man
now it loops itself when i input a letter
thanks for the warning about fflush()