Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~355 People Reached
Favorite Forums
Favorite Tags
c x 2
Member Avatar for Orymeyer

Considering the following lines of C code: #include <stdio.h> #include <stdlib.h> #include <ctype.h> void print_upper(char *string); int main() { char s[80]; printf("enter a string\n"); gets(s); print_upper(s); printf("\ns is now in upper case: %s",s); return 0; } void print_upper(char *string) { register int t; int k; for(t=0;string[t];++t) { string[t]=toupper(string[t]); putchar(string[t]); } …

Member Avatar for Vish0203
0
144
Member Avatar for Orymeyer

[CODE]#include<>stdio.h main() { int n,s=0,i=1; L1:printf("enter a range of numbers:"); scanf("%d",&n) if(n<1){printf("\wrong input"); goto L1;} while { s+=i; i+=2; } printf("\nthe sum of the series is=%d,s"); getch(); }[/CODE] the above program is meant to find out the sum S=1+3+5+7+....+N can any on explain me,the significance of talking i+=2??

Member Avatar for cse.avinash
0
211