Jump to content

VexKrad

Member
  • Posts

    28
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Profile Information

  • Gender
    Male
  • Biography
    Im Here to Learn
    Ethical Hacking Enthuaist
    Self Learned

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

VexKrad's Achievements

  1. This Is What I am Gonna Submit . #include <stdio.h> int main() { ProgramRestart : printf("\n _________________________________________________ \n"); int a,b,c,d; //Declaring Values// { printf("\nEnter Value Of A: \n"); // Inputing Value of Intergers // scanf("%d",&a); printf("Enter Value Of B: \n"); scanf("%d",&b); } { printf("Enter Operator: "); //Declaring Operator // scanf("%s",&c); } { switch(c) { case '+' : //If User Selects Addition As Operator // d=a+b; printf("\n The Sum Of A&B = %d",d); break; case '-' : //If User Select Subtraction As Operator // d= a-b; printf("\n The Subtraction Of A&B = %d",d); break; case '*' : //If User Select Multiplication As Operator // d= a*b; printf("\nThe Multiplication Of A&B = %d",d); break; case '/' : //If User Select Divison As Operator // d= a/b; printf("\n The Division Of A&B = %d",d); break; } goto ProgramRestart; } }
  2. Im Open Mind , Even Tho Our Tutor Didi not tauht im gonna go with the seconf option and actually learn about arrays , untill i'll use the one with two calculator . thank you guyz for helping me
  3. it works for two integers perfectly fine but like when i input two character in the enter operator field it dosn't work ugggh imma relaz and try to understand the logic and fine a understand a alternative way
  4. Error : Switch Quantity is not a integer
  5. #include <stdio.h> int main() { ProgramRestart : printf("\n _________________________________________________ \n"); int a,b,c,d,e,f ; char o; //Declaring Values// printf("\nEnter Value Of A: \n"); // Inputing Value of Intergers // scanf("%d",&a); printf("Enter Value Of B: \n"); scanf("%d",&b); printf("Enter Value Of C: \n"); scanf("%d",&c); printf("Enter Operator: "); //Declaring Operator // scanf("%s",&o); switch(o) { case '+' : //If User Selects Addition As Operator // d=a+b; printf("\n The Sum Of A&B = %d",d); break; case '-' : //If User Select Subtraction As Operator // d= a-b; printf("\n The Subtraction Of A&B = %d",d); break; case '*' : //If User Select Multiplication As Operator // d= a*b; printf("\nThe Multiplication Of A&B = %d",d); break; case '/' : //If User Select Divison As Operator // d= a/b; printf("\n The Division Of A&B = %d",d); break; case '++' : //If The User Desire Addition Of Three Intergers// f=a+b+c; printf("\n The Result Of (A+B)+C = %d ",f); break; case '+-' : //If The User Desire Additon & Subtraction of Three Integers // f=a+b-c; printf("\n The Result Of (A+B)-C = %d",f); break; case '+*' : //If User Desires Additon & Multiplication Of Three Integers // f=(a+b)*c; printf("\n The Result Of (A+B)*C = %d",f); break; case '+/' : //If User Desires Addition & Division Of Three Integers // f=(a+b)/c; printf("\n The Result Of (A+B)/C = %d",f); break; } goto ProgramRestart; } This Is What Did With My Code Ik still a mess but ugh same problem like it works for '++' perfectly but when i try other like '+-' i get no output
  6. k i get what u saying sir , i was like making blocks for a clear representation but ended up making more mess lol, second yeh i get what u said is it basciay for clear visula represttion or it is actully making a error in my code uggh sksks i still getting error lol
  7. l i tried but now the switch lines gives mt error like says o is not a integer but imma keep trying and let u know any possible resaosn or mistake i might be making
  8. im a noobie like i coded this after one day in class where our tutor taught us basics and im really unsure what each and everhting means and using %s im unsure what i did there coz i might have taken it from internet and tried and it might have worked so lets break it down i want my user to input charcters like " ++ , - - " etc so im make a case from them and want it to perform the code i introduced inside it so can you actally suggest me like what im doing like or idk actually tell me what and where i need to change in order for this to work !
  9. k so imma breif what im facing like i checked what u said even tho im unsure of what really it means ,, you want me to use a loop ,, and yes i added o in int like im unsure its like i want my user to input a charcter that is checked and correct case it used and im kinda unsure how to use it , i managed to make it work a bit so what s ur suggestion what should ,, like im unsure of some concepts ,, and goto i used for making the program run again and again like a user don't have to run in again & again..
  10. Hey Wassup Everyone So I'll Start With Basic , I Barely Know how to code , i mean i kinda know how to code but most of the time i end up wrong, tho im practising and improving my skills everyday ..so our tutor gave us this project a simple program to code ' a calculator , relax i don't want anyone to make it for me , i have made one with my best efforts ,( note that our tutor have taught us limed aspects of c like he still havn't taught use arrays and stuff , and for time being he wants us to code a calculator that can take three integers at a time and perform operations like addition and multiplication at the same time and wants the user to decide if he wants to perform simple calculations or complex like just additon 2 integers , k so getting on the help stuff now i coded a calculator with my best efforts and im still a learner my program runs ikd half like it can perform simple with eazy but when it comes to three integer additon or multiplictions it does not give give nay output idk why ! i have attached my code in pastebin link and i want someone to check where im going wrong and possible correct me ! please help me !! Thank You link : https://pastebin.com/gg5GsL61 If Your Too Lazy To Go to link _______________________________________ #include <stdio.h> int main() { ProgramRestart : printf("\n _________________________________________________ \n"); int a,b,c,d,e,f,o; //Declaring Values// { printf("\nEnter Value Of A: \n"); // Inputing Value of Intergers // scanf("%d",&a); printf("Enter Value Of B: \n"); scanf("%d",&b); printf("Enter Value Of ? \n"); scanf("%d",&c); } { printf("Enter Operator: "); //Declaring Operator // scanf("%s",&o); } { switch(o) { case '+' : //If User Selects Addition As Operator // d=a+b; printf("\n The Sum Of A&B = %d",d); break; case '-' : //If User Select Subtraction As Operator // d= a-b; printf("\n The Subtraction Of A&B = %d",d); break; case '*' : //If User Select Multiplication As Operator // d= a*b; printf("\nThe Multiplication Of A&B = %d",d); break; case '/' : //If User Select Divison As Operator // d= a/b; printf("\n The Division Of A&B = %d",d); break; case '++' : //If The User Desire Addition Of Three Intergers// f=a+b+c; printf("\n The Result Of (A+B)+C = %d ",f); break; case '+-' : //If The User Desire Additon & Subtraction of Three Integers // f=a+b-c; printf("\n The Result Of (A+B)-C = %d",f); break; case '+*' : //If User Desires Additon & Multiplication Of Three Integers // f=(a+b)*c; printf("\n The Result Of (A+B)*C = %d",f); break; case '+/' : //If User Desires Addition & Division Of Three Integers // f=(a+b)/c; printf("\n The Result Of (A+B)/C = %d",f); break; } goto ProgramRestart; } } ___________________________________-
  11. mixed bro , like im into hacking,coding and networking stuff so its appericated if you can find one
  12. i did update within my question inshort i want a high end laptop, im gonna use it for it relates stuff and hacking , coading ig
  13. that will actually take a lot of your time so ig its fine but if you can really can do it or have some custom made do hook me up in Pm , anything is apperciated
  14. its mixed i mean mostly i am into ethical hacking and stuff (self learnt) and coding too so conider ime a geek lol
×