Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
a=0
do
{
a++;
printf("%d ",a);
_sleep(100);
}while(a!=101);
system("pause");
return 0;
}
im supposed to let the user input a number(lets say b) and make the numbers from 0 to 100 that is divisible by 'b' to erase it and changed to "___".For example the user inputs 5,so i have to make 5 into '_*_' and the numbers from 0 to 100 that can be divided by 5 into "___".
001 002 003 004 _*_ 006 007 008 009 ___ 011 012 013 014 ___ 016
Or if the user inputs 4 that means i hav to make 4 as _*_ and the numbers from 0 to 100 that can be divided by 4 into "___".
001 002 003 _*_ 005 006 007 ___ 009 010
can anybody tell me how to do this?I juz started on basic C programming so pardon my low intelligence.