Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Answers
I do not know how let this C program run correctly
sami sam
12y
983
1
Reply
#include <stdio.h>
char s[80];
int i, j,n;
int main() {
printf("Type in a word: ");
scanf("%s",s);
printf("Type in a number: ");
scanf("%d",&n);
i = 0;
j = strlen -1;
while (i < j) {
printf("%c",s[i]);
i = i + n;
}
}
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
JIT ERROR
Import Data from Excel to a SQL Server 2000 use c#