Posted by: Sourav | August 2, 2012

Printf in C++


#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    
    double pi=3.141592655555;
    
   // printf(“%f”,pi);
    
    
    
    //cout<<endl;
    
   // printf(“%10.10f\n”,pi);
   int number1=100;
   int number2=-100;
  // printf(“%d”,number);
  //printf(“%15d”,number);
 // printf(“%+5d”,number1);
  //cout<<endl;
  //printf(“%5d”,number2);
    //  cout<<endl;
    printf(“%s\n”,”Hello Sourav!!!!!!!!!!”);
    
    return 0;
    
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: