Program CellingUp #C++

nah sebelumnya kan aku dah berbagi tentang CellingDown atau pembulatan kebawah
sekarang yang keatas...jangan dibawah terus nggk asik. :D
lihat Source code:

#include <cstdlib>
#include <iostream>

using namespace std;
void pembulatan(double x){
     double x,akhir;
     int b;
     b=y;
     akhir=y-b;

 if(hasil>0){b=b+1;}     cout<<"hasil : "<<b;
     }

int main(int argc, char *argv[])
{
    double x;
    cin>>x;
    pembulatan(x);
    cout<<endl<<endl;
   system("pause");
                return 0;
}

hasi Running nya:
 

selesai sudah CellingDown dan CellingUp :D

Posted in , , . Bookmark the permalink. RSS feed for this post.

Leave a Reply

Pages

Sandiah Notes Template Sandroid11.blogspot.com.