Nathaniel
@Klimi can i pm?
BinaryByter
no
klimi
klimi
But it's kurimi
klimi
Ňah
Nathaniel
klimi
oh sorry
No problem
Anonymous
Hello! My name is Vladislav and i'm from Ukraine. I want to start learn programming, but i can't choice programming language. C++ its good language for beginners? sorry for my english🙃
klimi
Well it doesn't really matter
klimi
If you code enough you can be good programmer anyeay
Anonymous
Thanks😉
Luis José
My phone screen is so bright that it burns my eyes T.T
Use some blue light filter app or screen dimmer
klimi
But I should be sleeping
klimi
So badly
Luis José
Thanks😉
Welcome m8!
Luis José
So badly
You should put on some natural documentary on TV about lions to feel sleepy haha that's what I do when in need
klimi
I don't have tv
Luis José
:( k, then use whatever steaming app on your phone or laptop
Luis José
Something could be done, being positive
Anonymous
Please someone help Me debug this 👇
Anonymous
Must⭐fa: #include<iostream> using namespace std; void Scores(double exam,double test)//function { cout<<"Enter test score: "; cin>>test; if(CAT>40){ cout<<"Test marks should not exceed 40"<<endl; } else if(test<=0){ cout<<"Test marks cannot be less than 1"<<endl; } else cout<<"Enter exam marks: "; cin>>exam; } double computeScore(double exam,double test)//function { double score; score = test + exam; return score; } char grade(double score)//function { char grade; if (score>=90 && score<=100) grade='A'; else if (score>=80 && score<90) grade='B'; else if (score>=70 && score<80) grade='C'; else if (score>=60 && score<70) grade='D'; else if (score<60) grade='F'; return grade; } void Comment(char grade)//function { switch(grade) { case 'A': cout<<"Excellent"<<endl; break; case 'B': cout<<"Very Good"<<endl; break; case 'C': cout<<"Good"<<endl; break; case 'D': cout<<"Tried"<<endl; break; case 'F': cout<<"Poor"<<endl; break; }; } int main()//function { int RegNo,contact,yearofstudy; string firstname,lastname,email,course; double CAT,exam,score,unitcode; char grade; { cout<<"Enter student registration number: "; cin>>RegNo; cout<<"Enter contact: "; cin>>contact; cout<<"Enter year of study: "; cin>>yearofstudy; cout<<"Enter course title: "; cin>>course; cout<<"Enter email address: "; cin>>email; cout<<"Enter first name: "; cin>>firstname; cout<<"Enter last name: "; cin>>lastname; Scores(exam,test); finalscore= computeScore(exam,test); cout<<"Test marks is: "<<test<<endl; cout<<"Exam marks is: "<<exam<<endl; cout<<"Total marks is: "<<score<<endl; grade=grade(score); cout<<" grade is: "<<grade<<endl; cout<<"Comment: "; Comment(grade); } return 0;
Sam
Hello
Ariana
Must⭐fa: #include<iostream> using namespace std; void Scores(double exam,double test)//function { cout<<"Enter test score: "; cin>>test; if(CAT>40){ cout<<"Test marks should not exceed 40"<<endl; } else if(test<=0){ cout<<"Test marks cannot be less than 1"<<endl; } else cout<<"Enter exam marks: "; cin>>exam; } double computeScore(double exam,double test)//function { double score; score = test + exam; return score; } char grade(double score)//function { char grade; if (score>=90 && score<=100) grade='A'; else if (score>=80 && score<90) grade='B'; else if (score>=70 && score<80) grade='C'; else if (score>=60 && score<70) grade='D'; else if (score<60) grade='F'; return grade; } void Comment(char grade)//function { switch(grade) { case 'A': cout<<"Excellent"<<endl; break; case 'B': cout<<"Very Good"<<endl; break; case 'C': cout<<"Good"<<endl; break; case 'D': cout<<"Tried"<<endl; break; case 'F': cout<<"Poor"<<endl; break; }; } int main()//function { int RegNo,contact,yearofstudy; string firstname,lastname,email,course; double CAT,exam,score,unitcode; char grade; { cout<<"Enter student registration number: "; cin>>RegNo; cout<<"Enter contact: "; cin>>contact; cout<<"Enter year of study: "; cin>>yearofstudy; cout<<"Enter course title: "; cin>>course; cout<<"Enter email address: "; cin>>email; cout<<"Enter first name: "; cin>>firstname; cout<<"Enter last name: "; cin>>lastname; Scores(exam,test); finalscore= computeScore(exam,test); cout<<"Test marks is: "<<test<<endl; cout<<"Exam marks is: "<<exam<<endl; cout<<"Total marks is: "<<score<<endl; grade=grade(score); cout<<" grade is: "<<grade<<endl; cout<<"Comment: "; Comment(grade); } return 0;
Pastebin ffs
Ariana
Plz help me
we can’t help if we dont now the problem...
Anonymous
I need to learn the c program from the basic
Anonymous
Please help me in refering
Anonymous
we can’t help if we dont now the problem...
I just want to delete the datas from the table if the size of thr database is less than 1kb
Anonymous
Ariana
How do we know what database
Ariana
What table
Ariana
Format
Ariana
etc.
Ariana
For all we know you could we using sql
Ariana
And what things have you tried too
Anonymous
hi !anyone is interested in some challenge?
Anonymous
watch this code
Anonymous
#include <stdio.h> int main(void) { char ans = 'y'; printf("do you want to play game?:"); scanf("%c", &ans); if (ans == 'y' || ans == 'Y') printf("welcome !"); else-if (ans=='n' || ans=='N') prinft("abort!"); }
Anonymous
oh sorry
Anonymous
it this
Anonymous
#include <stdio.h> int main(void) { char ans = 'y'; printf("do you want to play game?:"); scanf("%c", &ans); if (ans == 'y' || ans == 'Y') printf("welcome !"); else-if (ans=='n' || ans=='N') prinft("abort!"); else {printf("invalid please reinput:"); scanf("%c",ans); } }
Anonymous
oh?
joel
or after "invalid please reinput" the program will exit
Anonymous
oh?
You need to put while loop with a terminating condition
Anonymous
ok
Anonymous
ok ... i changed codes
Anonymous
#include <stdio.h> int main(void) { char ans = 'y'; printf("do you want to play game?:"); scanf("%c", &ans); for (;;) { if (ans == 'y' || ans == 'Y') printf("welcome !"); else if (ans == 'n' || ans == 'N') printf("abort!"); else { printf("invalid please reinput:"); scanf("%c", ans); } }
Anonymous
if i input neither y or n ,it will output segmentation fault
Anonymous
what is this?
Anonymous
#include <stdio.h> int main(void) { char ans = 'y'; printf("do you want to play game?: or enter e for exit"); scanf("%c", &ans); for (;;) { if(ans=='e') exit(0); if (ans == 'y' || ans == 'Y') printf("welcome !"); else if (ans == 'n' || ans == 'N') printf("abort!"); else { printf("invalid please reinput:"); scanf("%c", ans); } }
Anonymous
hmm.. i have to try again
Anonymous
Balance between space-time and code bloat.. code bloats are very problamatic these days
klimi
Good morning snowflakes
klimi
Welcome
Anonymous
Plz. Send some question
Anonymous
Mera c language program ka exam h plz. Help me 🙏
klimi
Plz. Send some question
How are your parents doing?
klimi
It's nice then it's not
klimi
Welcome
Anonymous
Heya
Anonymous
Welcome
you should stay in school this time ...
Anonymous
Do you guys know where I can get free machine learning courses?
klimi
Heya
Oh Gentoo nerd uwu
Anonymous
What Steve?
you told me you are in primary school
klimi
you told me you are in primary school
I haven't told you that