C program for Sum of first 50 Natural Numbers
#include <stdio.h> void main() { int num, sum = 0; for (num = 1; num <= 50; num++) { sum = sum + num; } printf("Sum = %4d\n", sum); }
Home � C program for Sum of first 50 Natural Numbers
#include <stdio.h> void main() { int num, sum = 0; for (num = 1; num <= 50; num++) { sum = sum + num; } printf("Sum = %4d\n", sum); }
|||||||||||||||||||||||||||||||||||||||||||||||||||© 2015 http://handsonbook.blogspot.com/ | Some Rights Reserved | Maintain By GEKVPRASAD||||||||||||||||||||||||||||||||||||||||||||||||||||