ok thank you for help
Type: Posts; User: tost
ok thank you for help
i changed the code to avid overrun and you said better solution and more easy
[CODE]#include<stdio.h>
int main(){
int const MAX_LEN =100;
char arr[MAX_LEN];
int i;
int judge=0;
i changed the code
#include<stdio.h>
int main(){
char arr[100],OH[]={'O','o','H','h'};
int i,x=0;
printf("please input ");
that's right this is an array i edited the code
#include<stdio.h>
int main(){
yes i edited the code after i post it ,you posted too fast
hello,
this code give me the same output not OH
#include<stdio.h>
int main(){
char arr[100];
int i;
i'm going to do that practice and practice
i need more problems that let me learn
Working
#include<stdio.h>
#include<string.h>
int main()
{
i changed it then i changed it to 'A','Z'
thank you :)
:wink:
that's right no update happen in the main function it just change the value then nothing
The correct code
#include<stdio.h>
#include<string.h>
#include<stdbool.h>
char...
mr std10093
i red the topic about why not using BUFSIZ it's size changeable from compiler to other
so where can i use it socket programming or what ?
i mean best situation to use BUFSIZ an nothing...
mr.Adak
i will let user input in char array and i will check every char if it upper then change to lower if it lower change to upper and the ascii symbol normal
that's my logic can you write to me...
Thanks i forgot that c++ has toupper tolower function so i changed all name
i removed the second check in to_lower to_upper
and <= >=;
could you tell me what IDE or compiler you use?
i still...
i need program that i input string like this
TOSst!@
and output
tosST!@
the proplem in source that if write anything it just output it the same
i used fgets and made new var for strlen()
but the same proplem :frown:
#include<stdio.h>
#include<string.h>
#include<stdbool.h>
char toupper(char);
char tolower(char);
bool islower(char);
Hello
please
1-what is the proplem with this code
2-how can i use fgets in this code
3- can i use BUFSIZ
which will be more faster BUFSIZ or strlen()
thank you laserlight
okay but what must i do
:D thank you KansaiRobot
#include<stdio.h>
int main()
{
int count =0;
int A=0,B=0,C=0,D=0;
char into;
yea you know when you i saw how about you say i got jerk hahaha that's easy if the condition true i wil add 1 to var
then i print the var that will be have the number of every time the condition...
yes mr.Salem i did i red this topic last week
but i realy cannot answer this proplem so please help me
Thank you
yes thank you i was mean i will make it func with another name to make new main cause i cannot make more than 1 main
but please help me i cannot write this program
hey i have this idea i will make normal code
user will input grade and if it is more than 75 i will use GOTO and +1 to var the same thing for more than 85 and after the code will add 1 to the var...
#include<stdio.h>
int main()
{
double G;
printf("Please Input your Grade:> ");
scanf("%lf",&G);
if(G>85){printf("A");}
Hello Please Help me with this proplem
i know how to make the input and use loop to ask user to input
50 grade
but
how can i count the number of the student that grade more than 85
and the...