Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Permenkaret Permenkaret is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 351
Rep Power: 15
Permenkaret mempunyai hidup yang Normal
Default <help> bikin frekuensi karakter

ini gan contoh input/outputnya...



input>a

input>b

input>a

input>spasi



hasil :

a=2

b=1



ini hasil ane..


Code:

#include
#include
void main ()
{
printf ("+////////////////////////////////////+\n");
printf (" Program mencetak frekuensi karakter\n");
printf ("+////////////////////////////////////+\n\n");

char n[50],tombol,x=0;
int i=0,k,p;

while (tombol !=32)
{
x++;
printf (" Masukkan inputan %d : ",x);
scanf ("%c",&n[i]);
i++;
printf ("\n");
fflush(stdin);
printf (" tekan 'ENTER' untuk lanjut / tekan 'SPASI' untuk keluar\n\n");
tombol=getch();
}


for (int j=0;jc

input>e

input>spasi



hasil:

e=2

c=2

e=2



gimana tuh gan..???apa yg salah ya..

mohon petunjuknya gan..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Terkait
Thread Thread Starter Forum Replies Last Post
JUAL Tutorial Rahasia Bikin Karakter Kartun jagokompi Software Original & Open Source 0 26th May 2012 10:02 AM
JUAL Rahasia Bikin Karakter Kartun jagokompi Software Original & Open Source 0 26th May 2012 09:56 AM
JUAL Tutorial Bikin Karakter Kartun sukalaptop Software Original & Open Source 0 26th May 2012 09:45 AM
JUAL [JUAL] Mo bikin Ilustrasi,Karakter design ato Storyboard..?? Kemari aja... Sotodaging Art Design 0 14th March 2012 12:54 PM

 


All times are GMT +7. The time now is 10:05 AM.