10 zeros.. oddly.
>_< i thought the \0 stands for blank characters(Spaces?)... i changed it to ASCII dec 32.. but it still can't detect the spaces
so i have to make it at i<=k right?...
Type: Posts; User: kaopei
10 zeros.. oddly.
>_< i thought the \0 stands for blank characters(Spaces?)... i changed it to ASCII dec 32.. but it still can't detect the spaces
so i have to make it at i<=k right?...
Since i'm planning for the input to be entered multiple times. Thats why i needed to reset the value to 0.. If i don't it will take up the last value from the previous cycle.
That's not the...
I put it inside the while loop to rest the counter everytime a new input is entered.
@_@ it keeps giving a
output for a supposed to be
and it doesnt print only one 0. it prints...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char words[200];
int d,i,k=0;
while(scanf("%s",words)==1){
k=strlen(words);
#include <stdio.h>
#include <stdlib.h>
int primecheck(int N, int Y);
void main()
{
int u,l,x;
float z,a;
while(scanf("%d %d",&u,&l)==2){
if(l>u){
I have a problem. I want to store an integer to an array which is obtained from an input.
scanf("%d",&integer);
eg if the user enters 1234
it will store it in arrays as
integer1 - 1