Recent Posts

Program 2 Variable Decleration BSCS C++

20 October, 2017
                                            Program 2.0

#include<stdio.h>

int main()

{
    int n;
                n=2225;
   
    float pi;
   
            pi=3.14;
   
    char mychar;
                    mychar='a';
   
        printf("%d %.2f    %c",n,pi,mychar);

===========================================
                                          Program 2.1

    #include<stdio.h>
               
                            #include<conio.h>

                int main()

{


            int num = 2225; float pi = 3.14; char mychar = 'a';
   


    printf("%d    %f    %c",num,pi,mychar);

}
============================================
                                          Program 2.3

#include<stdio.h>

int main()

{
        float f=2.1;     char c='a';     int d=12;
   

    printf("\t\ti love you \n\n\t\t\t%d        \n\n\t\t\t\t%.1f    \n\n\t\t\t\t\t%c",d,f,c);

}
============================================
}
Friend, If You Like This Post Kindly Comment Below And Do Share Your Response {Thanks for Reading}

No comments:

Post a Comment