C Help - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › C 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:" ;scanf("%d", &y); fflush(stdin); printf("Z = %d + %d is %d", x,y,x+y); if(Z < 100) z = x + y {printf("congratulation" ;}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:" ;scanf("%d", &y); fflush(stdin); Z = x + y; printf("Z = 2%d+%d = %d\n", x,y,Z); if ( Z > 100) {printf("congrate" ;}else { printf("HaHaHaHa" ;}getchar(); return 0; } |
Needs C/C++ Help With Cleaning Up Codes For A Sendmail Application • C# Help • Asp.net, Vb.net, C# Help Needed • 2 • 3 • 4
Help! I Am Writing About: Travelling Salesman Problem • Need Help With Service That Can Process Text Messages • How Feasible Is The Idea Of Driving A Car With A Computer Controlled Program
;