Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,193,393 members, 7,950,844 topics. Date: Tuesday, 17 September 2024 at 12:35 AM |
Nairaland Forum / Science/Technology / Programming / C Help (812 Views)
Needs C/C++ Help With Cleaning Up Codes For A Sendmail Application / C# Help / Asp.net, Vb.net, C# Help Needed (2) (3) (4)
(1) (Reply)
C Help by cruworld(m): 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(m): 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; } |
(1) (Reply)
Am New To Java / Free Python Programming Training / Test/review My Joomla Extension
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7 |