₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,345,759 members, 8,519,280 topics. Date: Monday, 16 November 2026 at 01:56 AM

Toggle theme

C Help - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › C Help (883 Views)

1 Reply

C Help by cruworld(op): 3:02pm On Dec 14, 2009
#include <stdio.h>

int main (void)
{
int x = 20;
int y;
int z;
printf("Enter Y Value:"wink;
scanf("%d", &y);
fflush(stdin);
printf("Z = %d + %d is %d", x,y,x+y);

if(Z < 100)
z = x + y
{printf("congratulation"wink;}
return 0;
}

what must i do to have a value of Z print Congratulation for me if i added the value of X and Y together?
Re: C Help by cruworld(op): 4:25pm On Dec 14, 2009
i got it solve myself but ur contrubution and experience is need,

#include <stdio.h>

int main (void)
{
int x = 20;
int y;
int Z;

printf("Enter y:"wink;
scanf("%d", &y);
fflush(stdin);
Z = x + y;
printf("Z = 2%d+%d = %d\n", x,y,Z);
if ( Z > 100)
{printf("congrate"wink;}
else
{ printf("HaHaHaHa"wink;}
getchar();
return 0;

}
1 Reply

Needs C/C++ Help With Cleaning Up Codes For A Sendmail Application • C# Help • Asp.net, Vb.net, C# Help Needed • 2 • 3 • 4

Why Seperate Database On Applications • Do You Hate Building Forms? • Help Me With This Javascript Snippet