₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,097 members, 8,429,325 topics. Date: Thursday, 18 June 2026 at 05:45 PM

Toggle theme

C Help - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingC Help (868 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 ApplicationC# HelpAsp.net, Vb.net, C# Help Needed234

Help! I Am Writing About: Travelling Salesman ProblemNeed Help With Service That Can Process Text MessagesHow Feasible Is The Idea Of Driving A Car With A Computer Controlled Program