Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

otsall / iax0583

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit a7d496ee authored 6 years ago by otsall's avatar otsall
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Upload New File

parent c21cfaac master
Hide whitespace changes
Inline Side-by-side
Showing with 30 additions and 0 deletions
  • Lab9/task3.c
Lab9/task3.c 0 → 100644
View file @ a7d496ee
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int isint(char a);
int main(){
char string[100];
int len,
i;
do{
puts("please input an integer.");
scanf("%s", string);
len = strlen(string);
for(i = 0; i < len; i++){
if(isint(string[i]) == 0){
puts("input is not an integer");
break;
}
}
}while(i < len);
puts("the input is an integer");
return 0;
}
int isint(char a){
int result = isdigit(a);
return result;
}
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment