Expert's Money Maker
Latest Post

Internet marketing and business solution

Written By Unknown on Tuesday, July 1, 2014 | 12:27 PM

>>>> TL POINT <<<<

Basic C Programming Practice - Practice 35

Written By Unknown on Friday, October 11, 2013 | 12:21 AM

=> Write a program in C to read int value and print float equivalent?


Solution :

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

main()


{

      int one;


      float two;

      scanf("%d", &one);

      two=(float)one;

      printf("%f",two);


      getch();

} 



Program Analysis :

Basic C Programming Practice - Practice 34

=> Write a program in C to read float value and print integer equivalent?


Solution :

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

main()


{


            float one;


            int two;

            scanf("%f", &one);

             two=(int)one;

            printf("%d",two);


            getch();

} 



Program Analysis :


Basic C Programming Practice - Practice 33

=> Write a program in C to print the lower case letters to upper case?


Solution :

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

main()


{


char any;

scanf("%c", &any);

printf("%c", any-32);


getch();

} 



Program Analysis :

Basic C Programming Practice - Practice 32

=> Write a program in C to print the upper case letters to lower case?


Solution :

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

main()

{

char any;

scanf("%c", &any);

printf("%c", any+32);


getch();

} 



Program Analysis :

Basic C Programming Practice - Practice 31

=> Write a program in C to Arithmetic operations of two double numbers. Print these results in separate lines?


Solution :

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

main()

{


double one,two;

scanf("%lf%lf", &one,&two);

printf("%lf\n%lf\n%lf\n%lf",one+two,one-two,one*two,one/two);

getch();

} 



Program Analysis :

Basic C Programming Practice - Practice 30

=> Write a program in C to Arithmetic operations of two float numbers. Print these results in separate lines?


Solution :

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

main()

{


float one,two;

scanf("%f%f", &one,&two);

printf("%f\n%f\n%f\n%f",one+two,one-two,one*two,one/two);

getch();

} 



Program Analysis :


CONFUSE??

CONFUSE??

Are You Searching For ::: ???

Are You Searching For :::   ???

MOST VIEWED

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Learn Programming - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger| Distributed by Rocking Templates