#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
int main() {
Type: Posts; User: YaZao
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
int main() {
Ohh so I see, I should make it bigger then XDDD Ahahaa, oh yeah. I should also think of something like that when using scanf. Thanks! :-D
Oh yeah, now it works Lol. Why bad? I don't get it.
int main() {
char password[20];
int i = 0, tru1, tru2, tru3;
printf("Enter your password (Must have 1 uppercase, lowercase and and a digit!): \n");
scanf(" %s", password);
Oh nevermind the problem is the variables amountOfChicken and other ........s like that it should be :
int amountOfChicken = 0;
I should assign them the value 0 XD okay my bad as newbie.
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int chicken = 5; int amountOfChicken;
int fish = 3; int amountOfFish;
int eggs = 1; int amountOfEggs;
int fries = 4;...
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int chicken = 5; int amountOfChicken;
int fish = 3; int amountOfFish;
int eggs = 1; int amountOfEggs;
int fries = 4;...
Thanks that helped bro! Alright new thread XD
So amount * 2 is just multiplying the variable right? Or no? I jsut dont get it.
#include <stdio.h>
int main ()
{
int day = 1;
float amount = .01;
while (day <= 31){
Ohh I just noticed why did you put another variable there? I could just use number_of_stars if it's equal to 'i' anyway? or if I used number_of_stars to be scanned?
Thank you guys. Love you all <3
#include <stdio.h>
#include <stdlib.h>
int main()
{
int space, row, stars, number_of_stars;
#include #include int main(){ float totalProfit; int priceOfmalunggay; float tax; int totalMalunggay; printf("How many malunggay did you get?\n"); scanf("%d", &totalMalunggay); ...
What should I put? I changed tax to float still it wont work. :(
#include <stdio.h>
#include <stdlib.h>
int main()
{
float totalProfit;
int priceOfmalunggay;
int tax;
int totalMalunggay;
Oh yeah Now I see. :)) Thanks. But it still crashes damn. Can you recommend me a good compiler? I'm using Dev C++ since it is somewhat useful I can use C++ and C language in one program.
Yeah I...
Try typing getchar(); in oneline
#include <stdio.h>
int main () {
char a;
printf("Enter 'M' for Multiplication 'D' for Division and 'A' for Addition and 'S' for Subtraction: ");
scanf("%c", &a);
int num1,...